public class PointState extends java.lang.Object implements ScalableUnits
Constructor and Description |
---|
PointState() |
Modifier and Type | Method and Description |
---|---|
void |
addPos(Vector3d p) |
void |
addVel(Vector3d v) |
boolean |
equals(ComponentState state) |
int |
get(VectorNd x,
int idx) |
Point3d |
getPos() |
int |
getPos(double[] buf,
int idx) |
void |
getPos(Vector3d pnt) |
Vector3d |
getVel() |
int |
getVel(double[] buf,
int idx) |
void |
getVel(Vector3d v) |
void |
scaledAddPos(double s,
Vector3d p) |
void |
scaledAddVel(double s,
Vector3d v) |
void |
scaleDistance(double s)
Scales all distance coordinates.
|
void |
scaleMass(double s)
Scales all mass units.
|
void |
set(PointState pstate) |
int |
set(VectorNd x,
int idx) |
int |
setPos(double[] buf,
int idx) |
void |
setPos(Vector3d pnt) |
int |
setVel(double[] buf,
int idx) |
void |
setVel(Vector3d v) |
public void set(PointState pstate)
public int set(VectorNd x, int idx)
public int get(VectorNd x, int idx)
public int getPos(double[] buf, int idx)
public int getVel(double[] buf, int idx)
public int setPos(double[] buf, int idx)
public void setPos(Vector3d pnt)
public void getPos(Vector3d pnt)
public int setVel(double[] buf, int idx)
public void setVel(Vector3d v)
public void getVel(Vector3d v)
public void addPos(Vector3d p)
public void scaledAddPos(double s, Vector3d p)
public void addVel(Vector3d v)
public void scaledAddVel(double s, Vector3d v)
public void scaleDistance(double s)
ScalableUnits
scaleDistance
in interface ScalableUnits
s
- scaling factorpublic void scaleMass(double s)
ScalableUnits
scaleMass
in interface ScalableUnits
s
- scaling factorpublic boolean equals(ComponentState state)
public Point3d getPos()
public Vector3d getVel()