|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.j3d.geom.spring.SpringNode
Representation of a node in a collection that many springs are connected to.
| Field Summary | |
SpringNode[] |
connections
Connections to other nodes |
float[] |
dir
|
boolean |
locked
Is this node currently locked in position? |
float[] |
naturalLengths
Natural length of each connection |
float[] |
normal
A reference to the global array containing normal information |
int |
numConnections
|
int |
offset
The offset into the array to work with the normal and positions |
float[] |
position
A reference to the global array containing position information |
| Method Summary | |
void |
addSpring(SpringNode node)
Add a spring between the given node and this node. |
void |
resetNaturalLengths()
Regenerate the natural lengths based on the current separation between this node and it's connections. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public float[] position
public float[] normal
public float[] dir
public int offset
public SpringNode[] connections
public float[] naturalLengths
public int numConnections
public boolean locked
| Method Detail |
public void addSpring(SpringNode node)
node - The new node instance to connect to this onepublic void resetNaturalLengths()
|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||