public class Wrench extends SpatialVector
| Modifier and Type | Field and Description | 
|---|---|
| Vector3d | fTranslational force | 
| Vector3d | mMoment (rotational force) | 
| static Wrench | ZERO | 
| Constructor and Description | 
|---|
| Wrench()Creates a Wrench and initializes its contents to zero. | 
| Wrench(double fx,
      double fy,
      double fz,
      double mx,
      double my,
      double mz)Creates a Wrench and initializes its components to the specified values. | 
| Wrench(Vector3d f,
      Vector3d m)Creates a Wrench and initializes its components to the specified values. | 
| Wrench(Wrench wr)Creates a Wrench and initializes its contents to the values of an existing
 Wrench. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | absolute(Wrench wr1)Sets the elements of this wrench to their absolute values. | 
| void | add(Wrench wr1)Adds this wrench to wr1 and places the result in this wrench. | 
| void | add(Wrench wr1,
   Wrench wr2)Adds wrench wr1 to wr2 and places the result in this wrench. | 
| Wrench | clone() | 
| void | combine(double s1,
       Wrench wr1,
       double s2,
       Wrench wr2)Computes s1 wr1 + s2 wr2 and places the result in this wrench. | 
| void | interpolate(double s,
           Wrench wr1)Computes the interpolation (1-s) this + s wr1 and places the result in
 this wrench. | 
| void | interpolate(Wrench wr1,
           double s,
           Wrench wr2)Computes the interpolation (1-s) wr1 + s wr2 and places the result in this
 wrench. | 
| void | inverseTransform(RigidTransform3d X,
                Wrench wr1)Applies an inverse rigid spatial transformation to the wrench wr1, and
 places the result in this wrench. | 
| void | inverseTransform(RotationMatrix3d R,
                Wrench wr1)Applies an inverse rotational transformation to the wrench wr1, and stores
 the result in this wrench. | 
| void | negate(Wrench wr1)Sets this wrench to the negative of wr1. | 
| void | normalize(Wrench wr1)Computes a unit wrench in the direction of wr1 and places the result in
 this wrench. | 
| void | scale(double s,
     Wrench wr1)Scales the elements of wrench wr1 by s and places the results in this
 wrench. | 
| void | scaledAdd(double s,
         Wrench wr1)Computes s wr1 and add the result to this wrench. | 
| void | scaledAdd(double s,
         Wrench wr1,
         Wrench wr2)Computes s wr1 + wr2 and places the result in this wrench. | 
| void | set(double fx,
   double fy,
   double fz,
   double mx,
   double my,
   double mz)Sets the values of this wrench to the specified component values. | 
| void | set(Vector3d f,
   Vector3d m)Sets the values of this wrench to the specified component values. | 
| void | set(Wrench wr)Sets the values of this wrench to those of wrench tw. | 
| void | sub(Wrench wr1)Subtracts wr1 from this wrench and places the result in this wrench. | 
| void | sub(Wrench wr1,
   Wrench wr2)Subtracts wrench wr1 from wr2 and places the result in this wrench. | 
| void | transform(RigidTransform3d X,
         Wrench wr1)Applies a rigid spatial transformation to the wrench wr1, and places the
 result in this wrench. | 
| void | transform(RotationMatrix3d R,
         Wrench wr1)Applies a rotational transformation to the wrench wr1 and stores the
 result in this wrench. | 
absolute, cross, dot, epsilonEquals, equals, get, get, get, infinityNorm, inverseTransform, inverseTransform, isContravariant, maxElement, minElement, negate, norm, normalize, normSquared, oneNorm, scale, set, set, set, set, setRandom, setRandom, setRandom, setZero, size, toString, transform, transformcontainsNaN, copy, copyAndAdd, copyAndNegate, copyAndScale, copyAndSub, copyAndSubLeft, dot, epsilonEquals, equals, get, getDefaultFormat, hasNaN, isColumnVectorStringsVertical, isFixedSize, isRowVector, scan, set, set, setColumnVectorStringsVertical, setDefaultFormat, setRowVector, setSize, toString, toString, write, writepublic static final Wrench ZERO
public Vector3d f
public Vector3d m
public Wrench()
public Wrench(Wrench wr)
wr - wrench whose values are to be copiedpublic Wrench(double fx,
              double fy,
              double fz,
              double mx,
              double my,
              double mz)
fx - force x componentfy - force y componentfz - force z componentmx - moment x componentmy - moment y componentmz - moment z componentpublic void set(double fx,
                double fy,
                double fz,
                double mx,
                double my,
                double mz)
fx - force x componentfy - force y componentfz - force z componentmx - moment x componentmy - moment y componentmz - moment z componentpublic void set(Vector3d f, Vector3d m)
f - forcem - momentpublic void set(Wrench wr)
wr - wrench whose values are to be copiedpublic void add(Wrench wr1, Wrench wr2)
wr1 - left-hand wrenchwr2 - right-hand wrenchpublic void add(Wrench wr1)
wr1 - right-hand wrenchpublic void sub(Wrench wr1, Wrench wr2)
wr1 - left-hand wrenchwr2 - right-hand wrenchpublic void sub(Wrench wr1)
wr1 - right-hand wrenchpublic void negate(Wrench wr1)
wr1 - wrench to negatepublic void scale(double s,
                  Wrench wr1)
s - scaling factorwr1 - wrench to be scaledpublic void interpolate(Wrench wr1, double s, Wrench wr2)
wr1 - left-hand wrenchs - interpolation factorwr2 - right-hand wrenchpublic void interpolate(double s,
                        Wrench wr1)
s - interpolation factorwr1 - right-hand wrenchpublic void scaledAdd(double s,
                      Wrench wr1,
                      Wrench wr2)
s - scaling factorwr1 - wrench to be scaledwr2 - wrench to be addedpublic void scaledAdd(double s,
                      Wrench wr1)
s - scaling factorwr1 - wrench to be scaled and addedpublic void combine(double s1,
                    Wrench wr1,
                    double s2,
                    Wrench wr2)
s1 - left-hand scaling factorwr1 - left-hand wrenchs2 - right-hand scaling factorwr2 - right-hand wrenchpublic void normalize(Wrench wr1)
wr1 - wrench to normalizepublic void absolute(Wrench wr1)
public void transform(RotationMatrix3d R, Wrench wr1)
R - rotational transformation matrixwr1 - wrench to transformpublic void inverseTransform(RotationMatrix3d R, Wrench wr1)
R - rotational transformation matrixwr1 - wrench to transformpublic void transform(RigidTransform3d X, Wrench wr1)
X - rigid spatial transformationwr1 - wrench to be transformedpublic void inverseTransform(RigidTransform3d X, Wrench wr1)
X - rigid spatial transformationwr1 - wrench to be transformedpublic Wrench clone()
clone in interface Clonableclone in class SpatialVector