|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmaspack.matrix.VectorObject
maspack.spatialmotion.SpatialVector
maspack.spatialmotion.Twist
A spatial vector that represents a spatial velocity, comprised of a translation velocity v and an angular velocity w. A twist is a contravariant spatial vector, with v being the free vector and w being the line vector.
| Field Summary | |
Vector3d |
v
Translational velocity |
Vector3d |
w
Rotational (angular) velocity |
| Constructor Summary | |
Twist()
Creates a Twist and initializes its contents to zero. |
|
Twist(double vx,
double vy,
double vz,
double wx,
double wy,
double wz)
Creates a Twist and initializes its components to the specified values. |
|
Twist(Twist tw)
Creates a Twist and initializes its contents to the values of an existing Twist. |
|
Twist(Vector3d v,
Vector3d w)
Creates a Twist and initializes its components to the specified values. |
|
| Method Summary | |
void |
absolute(Twist tw1)
Sets the elements of this twist to their absolute values. |
void |
add(Twist tw1)
Adds this twist to tw1 and places the result in this twist. |
void |
add(Twist tw1,
Twist tw2)
Adds twist tw1 to tw2 and places the result in this twist. |
void |
combine(double s1,
Twist tw1,
double s2,
Twist tw2)
Computes s1 tw1 + s2 tw2 and places the result in this twist. |
void |
interpolate(double s,
Twist tw1)
Computes the interpolation (1-s) this + s tw1 and places the result in this twist. |
void |
interpolate(Twist tw1,
double s,
Twist tw2)
Computes the interpolation (1-s) tw1 + s tw2 and places the result in this twist. |
void |
inverseTransform(RigidTransform3d X,
Twist tw1)
Applies an inverse rigid spatial transformation to the twist tw1, and places the result in this twist. |
void |
inverseTransform(RotationMatrix3d R,
Twist tw1)
Applies an inverse rotational transformation to the twist tw1, and stores the result in this twist. |
void |
negate(Twist tw1)
Sets this twist to the negative of tw1. |
void |
normalize(Twist tw1)
Computes a unit twist in the direction of tw1 and places the result in this twist. |
void |
scale(double s,
Twist tw1)
Scales the elements of twist tw1 by s and places the results in this twist. |
void |
scaleAdd(double s,
Twist tw1)
Computes s this + tw1 and places the result in this twist. |
void |
scaleAdd(double s,
Twist tw1,
Twist tw2)
Computes s tw1 + tw2 and places the result in this twist. |
void |
set(double vx,
double vy,
double vz,
double wx,
double wy,
double wz)
Sets the values of this twist to the specified component values. |
void |
set(RigidTransform3d X)
Sets this twist to a representation of a rigid spatial transformation. |
void |
set(Twist tw)
Sets the values of this twist to those of twist tw. |
void |
set(Vector3d v,
Vector3d w)
Sets the values of this twist to the specified component values. |
void |
sub(Twist tw1)
Subtracts tw1 from this twist and places the result in this twist. |
void |
sub(Twist tw1,
Twist tw2)
Subtracts twist tw1 from tw2 and places the result in this twist. |
void |
transform(RigidTransform3d X,
Twist tw1)
Applies a rigid spatial transformation to the twist tw1, and places the result in this twist. |
void |
transform(RotationMatrix3d R,
Twist tw1)
Applies a rotational transformation to the twist tw1 and stores the result in this twist. |
| Methods inherited from class maspack.spatialmotion.SpatialVector |
absolute, dot, epsilonEquals, equals, get, get, infinityNorm, inverseTransform, inverseTransform, isContravariant, maxElement, minElement, negate, norm, normalize, normSquared, oneNorm, scale, set, set, setRandom, setRandom, setRandom, setZero, size, toString, transform, transform |
| Methods inherited from class maspack.matrix.VectorObject |
dot, epsilonEquals, equals, equals, get, isFixedSize, scan, set, setSize, toString, toString |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final Vector3d v
public final Vector3d w
| Constructor Detail |
public Twist()
public Twist(Twist tw)
tw - twist whose values are to be copied
public Twist(double vx,
double vy,
double vz,
double wx,
double wy,
double wz)
vx - translational velocity x componentvy - translational velocity y componentvz - translational velocity z componentwx - rotational velocity x componentwy - rotational velocity y componentwz - rotational velocity z component
public Twist(Vector3d v,
Vector3d w)
v - translational velocityw - rotational velocity| Method Detail |
public void set(double vx,
double vy,
double vz,
double wx,
double wy,
double wz)
vx - translational velocity x componentvy - translational velocity y componentvz - translational velocity z componentwx - rotational velocity x componentwy - rotational velocity y componentwz - rotational velocity z component
public void set(Vector3d v,
Vector3d w)
v - translational velocityw - rotational velocitypublic void set(Twist tw)
tw - twist whose values are to be copiedpublic void set(RigidTransform3d X)
X - rigid transform
public void add(Twist tw1,
Twist tw2)
tw1 - left-hand twisttw2 - right-hand twistpublic void add(Twist tw1)
tw1 - right-hand twist
public void sub(Twist tw1,
Twist tw2)
tw1 - left-hand twisttw2 - right-hand twistpublic void sub(Twist tw1)
tw1 - right-hand twistpublic void negate(Twist tw1)
tw1 - twist to negate
public void scale(double s,
Twist tw1)
s - scaling factortw1 - twist to be scaled
public void interpolate(Twist tw1,
double s,
Twist tw2)
tw1 - left-hand twists - interpolation factortw2 - right-hand twist
public void interpolate(double s,
Twist tw1)
s - interpolation factortw1 - right-hand twist
public void scaleAdd(double s,
Twist tw1,
Twist tw2)
s - scaling factortw1 - twist to be scaledtw2 - twist to be added
public void scaleAdd(double s,
Twist tw1)
s - scaling factortw1 - twist to be added
public void combine(double s1,
Twist tw1,
double s2,
Twist tw2)
s1 - left-hand scaling factortw1 - left-hand twists2 - right-hand scaling factortw2 - right-hand twistpublic void normalize(Twist tw1)
tw1 - twist to normalizepublic void absolute(Twist tw1)
public void transform(RotationMatrix3d R,
Twist tw1)
R - rotational transformation matrixtw1 - twist to transform
public void inverseTransform(RotationMatrix3d R,
Twist tw1)
R - rotational transformation matrixtw1 - twist to transform
public void transform(RigidTransform3d X,
Twist tw1)
X - rigid spatial transformationtw1 - twist to be transformed
public void inverseTransform(RigidTransform3d X,
Twist tw1)
X - rigid spatial transformationtw1 - twist to be transformed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||