Class pv.Particle
A weighted particle that can participate in a force simulation.
Defined in: Particle.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Abstract; not implemented.
|
Field Attributes | Field Name and Description |
---|---|
The x-force on the particle.
|
|
The y-force on the particle.
|
|
The next particle in the simulation.
|
|
The x-position of the particle at -dt.
|
|
The y-position of the particle at -dt.
|
|
The x-velocity of the particle.
|
|
The y-velocity of the particle.
|
|
The x-position of the particle.
|
|
The y-position of the particle.
|
Class Detail
pv.Particle()
Abstract; not implemented. There is no explicit constructor; this class
merely serves to document the attributes that are used on particles in
physics simulations.
Field Detail
{number}
fx
The x-force on the particle.
{number}
fy
The y-force on the particle.
{pv.Particle}
next
The next particle in the simulation. Particles form a singly-linked list.
{number}
px
The x-position of the particle at -dt.
{number}
py
The y-position of the particle at -dt.
{number}
vx
The x-velocity of the particle.
{number}
vy
The y-velocity of the particle.
{number}
x
The x-position of the particle.
{number}
y
The y-position of the particle.