Search
Preparing search index...
The search index is not available
gtools
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
gtools
physics/objects/2d/rect
Rect
Class Rect
https://github.com/schteppe/p2.js/blob/master/src/shapes/Box.js
Hierarchy
Rect
Implements
MassAble2D
Index
Constructors
constructor
Properties
position
size
Accessors
area
bounding
Radius
center
circuit
moment
OfInertia
Methods
to
Min
Max
from
Min
Max
from
Points
from
Ray
from
Sphere
Constructors
constructor
new
Rect
(
position
:
Readonly
<
SimpleVector2
>
, size
:
Readonly
<
SimpleVector2
>
)
:
Rect
Parameters
position:
Readonly
<
SimpleVector2
>
size:
Readonly
<
SimpleVector2
>
Returns
Rect
Properties
Readonly
position
position
:
Readonly
<
SimpleVector2
>
Readonly
size
size
:
Readonly
<
SimpleVector2
>
Accessors
area
get
area
(
)
:
number
Returns
number
bounding
Radius
get
boundingRadius
(
)
:
number
Returns
number
center
get
center
(
)
:
Readonly
<
SimpleVector2
>
Returns
Readonly
<
SimpleVector2
>
circuit
get
circuit
(
)
:
number
Returns
number
moment
OfInertia
get
momentOfInertia
(
)
:
number
Returns
number
Methods
to
Min
Max
to
Min
Max
(
)
:
MinMax2D
Returns
MinMax2D
Static
from
Min
Max
from
Min
Max
(
__namedParameters
:
MinMax2D
)
:
Rect
Parameters
__namedParameters:
MinMax2D
Returns
Rect
Static
from
Points
from
Points
(
points
:
SimpleVector2
[]
, offsetX
?:
number
, offsetY
?:
number
)
:
Rect
Parameters
points:
SimpleVector2
[]
offsetX:
number
= 0
offsetY:
number
= ...
Returns
Rect
Static
from
Ray
from
Ray
(
__namedParameters
:
Pick
<
Ray2D
,
"origin"
|
"direction"
|
"length"
>
, realLength
?:
number
)
:
Rect
Parameters
__namedParameters:
Pick
<
Ray2D
,
"origin"
|
"direction"
|
"length"
>
realLength:
number
= ...
Returns
Rect
Static
from
Sphere
from
Sphere
(
__namedParameters
:
Pick
<
Circle
,
"radius"
|
"center"
>
)
:
Rect
Parameters
__namedParameters:
Pick
<
Circle
,
"radius"
|
"center"
>
Returns
Rect
Modules
physics/objects/2d/rect
Rect
constructor
position
size
area
bounding
Radius
center
circuit
moment
OfInertia
to
Min
Max
from
Min
Max
from
Points
from
Ray
from
Sphere
Generated using
TypeDoc
https://github.com/schteppe/p2.js/blob/master/src/shapes/Box.js