c2.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Arc
Field
Circle
Constraint
Circle
Field
Collision
Const
Force
Constraint
Force
Gravitation
Interaction
Force
Line
Field
constructor
line
strength
apply
force
range
Particle
Point
Field
Polygon
Constraint
Rect
Constraint
Spring
World
Hierarchy
Force
LineField
Index
Constructors
constructor
Properties
line
strength
Methods
apply
force
range
Constructors
constructor
new
Line
Field
(
line
:
Line
, strength
?:
number
)
:
LineField
Parameters
line:
Line
strength:
number
= 1
Returns
LineField
Properties
line
line
:
Line
strength
strength
:
number
Methods
apply
apply
(
p
:
Particle
)
:
void
Parameters
p:
Particle
Returns
void
force
force
(
position
:
Vector
)
:
Vector
Parameters
position:
Vector
Returns
Vector
range
range
(
min
?:
number
, max
?:
number
)
:
void
Parameters
min:
number
= 0
max:
number
= ...
Returns
void