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
Particle
Point
Field
Polygon
Constraint
Rect
Constraint
Spring
constructor
length
p1
p2
strength
range
update
World
Hierarchy
Spring
Index
Constructors
constructor
Properties
length
p1
p2
strength
Methods
range
update
Constructors
constructor
new
Spring
(
p1
:
Particle
, p2
:
Particle
)
:
Spring
new
Spring
(
p1
:
Particle
, p2
:
Particle
, strength
:
number
)
:
Spring
new
Spring
(
p1
:
Particle
, p2
:
Particle
, strength
:
number
, length
:
number
)
:
Spring
Parameters
p1:
Particle
p2:
Particle
Returns
Spring
Parameters
p1:
Particle
p2:
Particle
strength:
number
Returns
Spring
Parameters
p1:
Particle
p2:
Particle
strength:
number
length:
number
Returns
Spring
Properties
length
length
:
number
p1
p1
:
Particle
p2
p2
:
Particle
strength
strength
:
number
= 1
Methods
range
range
(
min
?:
number
, max
?:
number
)
:
void
Parameters
min:
number
= 0
max:
number
= ...
Returns
void
update
update
(
)
:
void
Returns
void