|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.geometricModel.physics.Inertia
public final class Inertia
Represents the inertia of a physical object along its main inertia axes. The SI unit of inertia is kg * m^2.
| Field Summary | |
|---|---|
static Inertia |
ZERO
Immutable Inertia instance representing zero inertia. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
double |
getJX()
Gets the inertia of the object around the X axis. |
double |
getJY()
Gets the inertia of the object around the Y axis. |
double |
getJZ()
Gets the inertia of the object around the Z axis. |
int |
hashCode()
|
static Inertia |
of(double jX,
double jY,
double jZ)
Creates a new immutable instance of this class, with the given values of inertia along the X, Y and Z axes of an object's mass centroid. |
static Inertia |
of(Vector values)
Creates a new immutable instance of this class, with the given values of inertia along the X, Y and Z axes of an object's mass centroid. |
String |
toString()
Returns a textual description of the inertia. |
Vector |
toVector()
Creates a Vector of the inertia's values. |
Inertia |
withJX(double value)
Returns a new Inertia instance with the X inertia set to the
given value. |
Inertia |
withJY(double value)
Returns a new Inertia instance with the Y inertia set to the
given value. |
Inertia |
withJZ(double value)
Returns a new Inertia instance with the Z inertia set to the
given value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Inertia ZERO
Inertia instance representing zero inertia.
| Method Detail |
|---|
public static Inertia of(double jX,
double jY,
double jZ)
jX - The inertia along the X axis of an object's mass centroid in
[kg * m^2].jY - The inertia along the Y axis of an object's mass centroid in
[kg * m^2].jZ - The inertia along the Z axis of an object's mass centroid in
[kg * m^2].
public static Inertia of(Vector values)
values - A Vector with the values of the inertia along the axes
of an object's mass centroid in [kg * m^2].
public double getJX()
public double getJY()
public double getJZ()
public Inertia withJX(double value)
Inertia instance with the X inertia set to the
given value.
value - The new value in [kg * m^2].
Inertiapublic Inertia withJY(double value)
Inertia instance with the Y inertia set to the
given value.
value - The new value in [kg * m^2].
Inertiapublic Inertia withJZ(double value)
Inertia instance with the Z inertia set to the
given value.
value - The new value in [kg * m^2].
Inertiapublic Vector toVector()
Vector of the inertia's values.
public String toString()
"[1.23, 300.00, -20.20]"
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||