|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.orekit.wrenches.Wrench
public class Wrench
This class represents a wrench.
| Field Summary | |
|---|---|
static Wrench |
ZERO
Zero wrench. |
| Constructor Summary | |
|---|---|
Wrench(double[] data)
Constructor from an array. |
|
Wrench(Vector3D origin,
Vector3D force,
Vector3D torque)
Create a wrench with given force and torque. |
|
| Method Summary | |
|---|---|
Wrench |
add(Wrench wrench)
Sum of two wrenches. |
Wrench |
displace(Vector3D newOrigin)
Displace current wrench. |
static Wrench |
displace(Wrench wrench,
Vector3D newOrigin)
Displace current wrench. |
Vector3D |
getForce()
|
Vector3D |
getOrigin()
|
Vector3D |
getTorque()
|
Vector3D |
getTorque(Vector3D origin)
Get the torque expressed in another point. |
double[] |
getWrench()
Get a double[] representation of this wrench. |
static Wrench |
sum(Wrench wrench1,
Wrench wrench2)
Sum of two wrenches. |
String |
toString()
Get a String representation for this Wrench. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Wrench ZERO
| Constructor Detail |
|---|
public Wrench(Vector3D origin,
Vector3D force,
Vector3D torque)
origin - originforce - forcetorque - torque
public Wrench(double[] data)
throws OrekitException
Constructor from an array.
data =
{ox, oy, oz,
fx, fy, fz,
tx, ty, tz}
where o is the origin, f the force and t the torque.
data - array with origin, force and torque
OrekitException - if input data array has an incorrect length| Method Detail |
|---|
public Vector3D getOrigin()
public Vector3D getForce()
public Vector3D getTorque()
public Vector3D getTorque(Vector3D origin)
origin - new origin for torque expression
public Wrench add(Wrench wrench)
wrench - wrench to add
public static Wrench sum(Wrench wrench1,
Wrench wrench2)
wrench1 - first wrenchwrench2 - second wrench
public Wrench displace(Vector3D newOrigin)
newOrigin - new origin
public static Wrench displace(Wrench wrench,
Vector3D newOrigin)
wrench - the wrench to displacenewOrigin - new origin
public double[] getWrench()
data = wrench.getWrench();
data =
{ox, oy, oz,
fx, fy, fz,
tx, ty, tz}
where o is the origin, f the force and t the torque.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||