|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.geometricModel.math.AbstractRotation
com.kuka.roboticsAPI.geometricModel.math.AxisAngleRotation
public final class AxisAngleRotation
Immutable representation of a spatial rotation in axis-angle form.
According to Euler's rotation theorem every rotation of a body in three-dimensional space around a fixed point can be represented as a rotation around a fixed axis through that point.
The Robotics API always assumes the axis of the rotation to be given in [mm].
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
double |
getAngle()
Returns the angle of this rotation around its axis. |
Vector |
getAxis()
Returns the axis of this rotation. |
Matrix |
getMatrix()
Returns a matrix representing this rotation. |
int |
hashCode()
|
static AxisAngleRotation |
of(IRotation orig)
Returns a new immutable instance of this class from the value of the given rotation. |
static AxisAngleRotation |
of(Vector axis,
double angle)
Returns a new immutable instance of this class that represents a spatial rotation around the given axis through the given angle. |
String |
toString()
Returns a textual description of the rotation. |
AxisAngleRotation |
withAngle(double angle)
Returns a new instance (copy) of the rotation, with the angle replaced by the new value. |
AxisAngleRotation |
withAxis(Vector axis)
Returns a new instance (copy) of the rotation, with the rotation axis replaced by the new value. |
| Methods inherited from class com.kuka.roboticsAPI.geometricModel.math.AbstractRotation |
|---|
applyTo, applyTo, compose, invert, rotationalDistanceTo, rotationTo |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static AxisAngleRotation of(Vector axis,
double angle)
axis - The axis of the rotation. Doesn't need to be normalized.angle - the angle of the rotation around the axis in [rad]
public static AxisAngleRotation of(IRotation orig)
orig - the original rotation
public Vector getAxis()
public double getAngle()
public Matrix getMatrix()
IRotation
getMatrix in interface IRotationgetMatrix in class AbstractRotationMatrix representing this rotation. This is potentially
a costly conversionpublic AxisAngleRotation withAxis(Vector axis)
axis - the new axis the rotation
public AxisAngleRotation withAngle(double angle)
angle - the angle of the rotation around the axis in [rad]
public String toString()
AbstractRotationThis implementation will return a description in Euler Z-Y-X angles in [rad] with KUKA notation (A, B, C). The following string can be regarded as typical:
"[A=1.23 B=3.14 C=-0.13]"
toString in class AbstractRotationpublic 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 | |||||||||