Search
Preparing search index...
The search index is not available
gtools
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
gtools
physics/bounding-boxes/aabb2
AABB2
Class AABB2
Hierarchy
AABB2
Implements
AABB
<
AABB2
,
SimpleVector2
,
MinMax2D
>
Index
Constructors
constructor
Properties
max
min
Methods
expand
ByAABB
expand
ByPoint
expand
ByScalar
expand
ByVector
get
Center
get
Min
Max
get
Position
get
Size
get
Volume
move
ByScalar
move
ByVector
move
Center
To
ray
Cast
from
Center
And
Size
from
Pos
And
Size
Constructors
constructor
new AABB2
(
min
:
SimpleVector2
, max
:
SimpleVector2
)
:
AABB2
Parameters
min:
SimpleVector2
max:
SimpleVector2
Returns
AABB2
Properties
Protected
Readonly
max
max
:
SimpleVector2
Protected
Readonly
min
min
:
SimpleVector2
Methods
expand
ByAABB
expand
ByAABB
(
other
:
AABB2
)
:
void
Parameters
other:
AABB2
Returns
void
expand
ByPoint
expand
ByPoint
(
point
:
SimpleVector2
)
:
void
Parameters
point:
SimpleVector2
Returns
void
expand
ByScalar
expand
ByScalar
(
distance
:
number
)
:
void
Parameters
distance:
number
Returns
void
expand
ByVector
expand
ByVector
(
vec
:
SimpleVector2
)
:
void
Parameters
vec:
SimpleVector2
Returns
void
get
Center
get
Center
(
)
:
SimpleVector2
Returns
SimpleVector2
get
Min
Max
get
Min
Max
(
)
:
MinMax2D
Returns
MinMax2D
get
Position
get
Position
(
)
:
SimpleVector2
Returns
SimpleVector2
get
Size
get
Size
(
)
:
SimpleVector2
Returns
SimpleVector2
get
Volume
get
Volume
(
)
:
number
Returns
number
move
ByScalar
move
ByScalar
(
distance
:
number
)
:
void
Parameters
distance:
number
Returns
void
move
ByVector
move
ByVector
(
vec
:
SimpleVector2
)
:
void
Parameters
vec:
SimpleVector2
Returns
void
move
Center
To
move
Center
To
(
center
:
SimpleVector2
)
:
void
Parameters
center:
SimpleVector2
Returns
void
ray
Cast
ray
Cast
(
result
:
RaycastResult
, ray
:
RayCast2D
, maxFraction
?:
number
)
:
boolean
Parameters
result:
RaycastResult
ray:
RayCast2D
maxFraction:
number
= ...
Returns
boolean
Static
from
Center
And
Size
from
Center
And
Size
(
center
:
SimpleVector2
, size
:
SimpleVector2
)
:
AABB2
Parameters
center:
SimpleVector2
size:
SimpleVector2
Returns
AABB2
Static
from
Pos
And
Size
from
Pos
And
Size
(
pos
:
SimpleVector2
, size
:
SimpleVector2
)
:
AABB2
Parameters
pos:
SimpleVector2
size:
SimpleVector2
Returns
AABB2
Modules
physics/bounding-
boxes/aabb2
AABB2
constructor
max
min
expand
ByAABB
expand
ByPoint
expand
ByScalar
expand
ByVector
get
Center
get
Min
Max
get
Position
get
Size
get
Volume
move
ByScalar
move
ByVector
move
Center
To
ray
Cast
from
Center
And
Size
from
Pos
And
Size
Generated using
TypeDoc