|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.util.force.ForceItem
public class ForceItem
Represents a point particle in a force simulation, maintaining values for mass, forces, velocity, and position.
| Field Summary | |
|---|---|
float[] |
force
The values of the forces acting on this ForceItem. |
float[][] |
k
Temporary variables for Runge-Kutta integration |
float[][] |
l
Temporary variables for Runge-Kutta integration |
float[] |
location
The location values of this ForceItem. |
float |
mass
The mass value of this ForceItem. |
float[] |
plocation
The previous location values of this ForceItem. |
float[] |
velocity
The velocity values of this ForceItem. |
| Constructor Summary | |
|---|---|
ForceItem()
Create a new ForceItem. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone a ForceItem. |
static boolean |
isValid(ForceItem item)
Checks a ForceItem to make sure its values are all valid numbers (i.e., not NaNs). |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public float mass
public float[] force
public float[] velocity
public float[] location
public float[] plocation
public float[][] k
public float[][] l
| Constructor Detail |
|---|
public ForceItem()
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.ObjectObject.clone()public static final boolean isValid(ForceItem item)
item - the item to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||