public enum RotationRep extends java.lang.Enum<RotationRep>
Enum Constant and Description |
---|
AXIS_ANGLE
Axis-angle representation (u, ang), with the angle given in
radians.
|
AXIS_ANGLE_DEG
Axis-angle representation (u, ang), with the angle given in
radians.
|
QUATERNION
Unit quaternion.
|
XYZ
Successive rotations, in radians, about the x-y-z axes.
|
XYZ_DEG
Successive rotations, in degrees, about the x-y-z axes.
|
ZYX
Successive rotations, in radians, about the z-y-x axes.
|
ZYX_DEG
Successive rotations, in degress, about the z-y-x axes.
|
Modifier and Type | Method and Description |
---|---|
static double |
canonicalAngle(double ang)
Find the canocical representation of an angle
ang ,
such that it is in the range (-PI, PI] . |
java.lang.String[] |
getFieldNames()
Returns appropriate names for the numeric values of this RotationRep.
|
static double |
nearestAngle(double ang,
double ref)
Given an angle
ang , find an equivalent angle that is within
+/- PI of a given reference angle ref . |
int |
size()
Queries the number of doubles required for this RotationRep.
|
boolean |
usesDegrees()
Queries whethar this RotationRep represents angles in degrees.
|
static RotationRep |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RotationRep[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RotationRep ZYX
public static final RotationRep ZYX_DEG
public static final RotationRep XYZ
public static final RotationRep XYZ_DEG
public static final RotationRep AXIS_ANGLE
public static final RotationRep AXIS_ANGLE_DEG
public static final RotationRep QUATERNION
public static RotationRep[] values()
for (RotationRep c : RotationRep.values()) System.out.println(c);
public static RotationRep valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int size()
public boolean usesDegrees()
public java.lang.String[] getFieldNames()
public static final double nearestAngle(double ang, double ref)
ang
, find an equivalent angle that is within
+/- PI of a given reference angle ref
.ang
- initial angle (radians)ref
- reference angle (radians)ang
within +/- PI
of ref
.public static final double canonicalAngle(double ang)
ang
,
such that it is in the range (-PI, PI]
.ang
- initial angle (radians)ang
.