iink-ts - v4.0.0
Preparing search index...
OBBOps
Variable OBBOps
Const
OBBOps
:
{
contains
(
a
:
TOBB
,
b
:
TOBB
)
:
boolean
;
containsPoint
(
obb
:
TOBB
,
point
:
TPoint
)
:
boolean
;
create
(
center
:
TPoint
,
width
:
number
,
height
:
number
,
angle
?:
number
)
:
TOBB
;
createFromOBBs
(
obbs
:
TOBB
[]
)
:
TOBB
;
createFromPoints
(
points
:
TPoint
[]
)
:
TOBB
;
fromBox
(
box
:
TBox
)
:
TOBB
;
getCorners
(
obb
:
TOBB
)
:
TPoint
[]
;
getSides
(
obb
:
TOBB
)
:
TSegment
[]
;
getSnapPoints
(
obb
:
TOBB
)
:
TPoint
[]
;
isContained
(
obb
:
TOBB
,
box
:
TBox
)
:
boolean
;
overlaps
(
a
:
TOBB
,
b
:
TOBB
)
:
boolean
;
overlapsBox
(
obb
:
TOBB
,
box
:
TBox
)
:
boolean
;
toBox
(
obb
:
TOBB
)
:
TBox
;
}
= ...
Type Declaration
contains
:
function
contains
(
a
:
TOBB
,
b
:
TOBB
)
:
boolean
Parameters
a
:
TOBB
b
:
TOBB
Returns
boolean
containsPoint
:
function
containsPoint
(
obb
:
TOBB
,
point
:
TPoint
)
:
boolean
Parameters
obb
:
TOBB
point
:
TPoint
Returns
boolean
create
:
function
create
(
center
:
TPoint
,
width
:
number
,
height
:
number
,
angle
?:
number
)
:
TOBB
Parameters
center
:
TPoint
width
:
number
height
:
number
angle
:
number
= 0
Returns
TOBB
createFromOBBs
:
function
createFromOBBs
(
obbs
:
TOBB
[]
)
:
TOBB
Parameters
obbs
:
TOBB
[]
Returns
TOBB
createFromPoints
:
function
createFromPoints
(
points
:
TPoint
[]
)
:
TOBB
Parameters
points
:
TPoint
[]
Returns
TOBB
fromBox
:
function
fromBox
(
box
:
TBox
)
:
TOBB
Parameters
box
:
TBox
Returns
TOBB
getCorners
:
function
getCorners
(
obb
:
TOBB
)
:
TPoint
[]
Parameters
obb
:
TOBB
Returns
TPoint
[]
getSides
:
function
getSides
(
obb
:
TOBB
)
:
TSegment
[]
Parameters
obb
:
TOBB
Returns
TSegment
[]
getSnapPoints
:
function
getSnapPoints
(
obb
:
TOBB
)
:
TPoint
[]
Parameters
obb
:
TOBB
Returns
TPoint
[]
isContained
:
function
isContained
(
obb
:
TOBB
,
box
:
TBox
)
:
boolean
Parameters
obb
:
TOBB
box
:
TBox
Returns
boolean
overlaps
:
function
overlaps
(
a
:
TOBB
,
b
:
TOBB
)
:
boolean
Parameters
a
:
TOBB
b
:
TOBB
Returns
boolean
overlapsBox
:
function
overlapsBox
(
obb
:
TOBB
,
box
:
TBox
)
:
boolean
Parameters
obb
:
TOBB
box
:
TBox
Returns
boolean
toBox
:
function
toBox
(
obb
:
TOBB
)
:
TBox
Parameters
obb
:
TOBB
Returns
TBox
Settings
Member Visibility
Protected
Inherited
Alpha
Beta
Theme
OS
Light
Dark
iink-ts - v4.0.0
Loading...