|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jocl.cloth.ParticleData
class ParticleData
A plain structure holding the data for a set of particles
Field Summary | |
---|---|
(package private) float[] |
accelerations
The accelerations of the particles. |
(package private) float[] |
candidatePositions
The candidate positions of the particles, which are used for the intermediate state of the computation. |
(package private) float[] |
constraintPositions
The positions of the constraints. |
(package private) int[] |
constraints
The constraints for the particles. |
(package private) float[] |
invMasses
Stores for each particle its inverse mass |
(package private) int |
numConstraints
The number of constraints. |
(package private) int |
numParticles
The number of particles |
(package private) float[] |
positions
The positions of the particles. |
(package private) float[] |
velocities
The velocities of the particles. |
Constructor Summary | |
---|---|
ParticleData()
Default constructor |
Method Summary | |
---|---|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
int numParticles
float[] positions
positions[particleIndex*STRIDE+0] = position.x; positions[particleIndex*STRIDE+1] = position.y; positions[particleIndex*STRIDE+2] = position.z; where particleIndex = 0...numParticles-1 STRIDE = 4 (usually)
float[] candidatePositions
positions
float[] velocities
positions
float[] accelerations
positions
float[] invMasses
int numConstraints
int[] constraints
constraints[index] = indexOfConstrainedParticle where index = 0...numConstraints-1
float[] constraintPositions
positions[constraintIndex*STRIDE+0] = position.x; positions[constraintIndex*STRIDE+1] = position.y; positions[constraintIndex*STRIDE+2] = position.z; where constraintIndex = 0...numConstraints-1 STRIDE = 4 (usually)
Constructor Detail |
---|
ParticleData()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |