public class ForceItem
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ForceItem()
Create a new ForceItem.
|
| Modifier and Type | Method and Description |
|---|---|
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).
|
public float mass
public float[] force
public float[] velocity
public float[] location
public float[] plocation
public float[][] k
public float[][] l
public java.lang.Object clone()
clone in class java.lang.ObjectObject.clone()public static final boolean isValid(ForceItem item)
item - the item to check