Search
Preparing search index...
The search index is not available
gtools
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
gtools
physics/objects/2d/circle
Circle
Class Circle
https://github.com/schteppe/p2.js/blob/master/src/shapes/Circle.js
Hierarchy
Circle
Implements
MassAble2D
Index
Constructors
constructor
Properties
center
radius
Accessors
area
bounding
Radius
circuit
moment
OfInertia
Methods
raycast
to
Min
Max
from
Min
Max
from
Pos
Size
Constructors
constructor
new
Circle
(
radius
:
number
, center
:
SimpleVector2
)
:
Circle
Parameters
radius:
number
center:
SimpleVector2
Returns
Circle
Properties
Readonly
center
center
:
SimpleVector2
Readonly
radius
radius
:
number
Accessors
area
get
area
(
)
:
number
Returns
number
bounding
Radius
get
boundingRadius
(
)
:
number
Returns
number
circuit
get
circuit
(
)
:
number
Returns
number
moment
OfInertia
get
momentOfInertia
(
)
:
number
Returns
number
Methods
raycast
raycast
(
result
:
RaycastResult
, ray
:
RayCast2D
)
:
void
Parameters
result:
RaycastResult
ray:
RayCast2D
Returns
void
to
Min
Max
to
Min
Max
(
)
:
MinMax2D
Returns
MinMax2D
Static
from
Min
Max
from
Min
Max
(
__namedParameters
:
MinMax2D
, chooseSize
?:
"min"
|
"max"
)
:
Circle
Parameters
__namedParameters:
MinMax2D
chooseSize:
"min"
|
"max"
= "max"
Returns
Circle
Static
from
Pos
Size
from
Pos
Size
(
posSize
:
PosSize2D
, chooseSize
?:
"min"
|
"max"
)
:
Circle
Parameters
posSize:
PosSize2D
chooseSize:
"min"
|
"max"
= "max"
Returns
Circle
Modules
physics/objects/2d/circle
Circle
constructor
center
radius
area
bounding
Radius
circuit
moment
OfInertia
raycast
to
Min
Max
from
Min
Max
from
Pos
Size
Generated using
TypeDoc
https://github.com/schteppe/p2.js/blob/master/src/shapes/Circle.js