public class PointState extends java.lang.Object implements TransformableGeometry, ScalableUnits
ARTICULATED, SIMULATING
Constructor and Description |
---|
PointState() |
Modifier and Type | Method and Description |
---|---|
void |
addPos(Point3d p) |
void |
addVel(Vector3d v) |
boolean |
equals(ComponentState state) |
int |
get(VectorNd x,
int idx) |
Point3d |
getPos() |
int |
getPos(double[] buf,
int idx) |
Vector3d |
getVel() |
int |
getVel(double[] buf,
int idx) |
void |
scaledAddPos(double s,
Point3d 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(Point3d pnt) |
int |
setVel(double[] buf,
int idx) |
void |
setVel(Vector3d v) |
void |
transformGeometry(AffineTransform3dBase X)
Applies an affine transformation to the geometry of this object.
|
void |
transformGeometry(AffineTransform3dBase X,
TransformableGeometry topObject,
int flags)
Applies an affine transformation to the geometry of this object.
|
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(Point3d pnt)
public int setVel(double[] buf, int idx)
public void setVel(Vector3d v)
public void addPos(Point3d p)
public void scaledAddPos(double s, Point3d 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 void transformGeometry(AffineTransform3dBase X)
TransformableGeometry
transformGeometry (X, this, 0);
transformGeometry
in interface TransformableGeometry
X
- affine transformationpublic void transformGeometry(AffineTransform3dBase X, TransformableGeometry topObject, int flags)
TransformableGeometry
topComponent
should be the component for which the method
was initially invoked. The variable flags
provides
information about the context in which the transformation is
being applied. At present, the available flags are
TransformableGeometry.SIMULATING
and TransformableGeometry.ARTICULATED
.transformGeometry
in interface TransformableGeometry
X
- affine transformationtopObject
- component on which the method was initially invokedflags
- provides information about the context in which the
transformation is being applied.public boolean equals(ComponentState state)
public Point3d getPos()
public Vector3d getVel()