Search
Preparing search index...
The search index is not available
gtools
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
gtools
physics/objects/2d/line-2d
Line2D
Class Line2D
https://github.com/schteppe/p2.js/blob/master/src/shapes/Line.js
Hierarchy
Line2D
Implements
Object2D
Index
Constructors
constructor
Properties
pointA
pointB
Accessors
bounding
Radius
length
moment
OfInertia
Methods
angle
to
Min
Max
from
Points
Constructors
constructor
new
Line2D
(
pointA
:
SimpleVector2
, pointB
:
SimpleVector2
)
:
Line2D
Parameters
pointA:
SimpleVector2
pointB:
SimpleVector2
Returns
Line2D
Properties
Readonly
pointA
pointA
:
SimpleVector2
Readonly
pointB
pointB
:
SimpleVector2
Accessors
bounding
Radius
get
boundingRadius
(
)
:
number
Returns
number
length
get
length
(
)
:
number
Returns
number
moment
OfInertia
get
momentOfInertia
(
)
:
number
Returns
number
Methods
angle
angle
(
)
:
number
Returns
number
to
Min
Max
to
Min
Max
(
)
:
MinMax2D
Returns
MinMax2D
Static
from
Points
from
Points
(
aX
:
number
, aY
:
number
, bX
:
number
, bY
:
number
)
:
Line2D
Parameters
aX:
number
aY:
number
bX:
number
bY:
number
Returns
Line2D
Modules
physics/objects/2d/line-
2d
Line2D
constructor
pointA
pointB
bounding
Radius
length
moment
OfInertia
angle
to
Min
Max
from
Points
Generated using
TypeDoc
https://github.com/schteppe/p2.js/blob/master/src/shapes/Line.js