Package org.apache.commons.math.geometry
Class RotationOrder
- java.lang.Object
-
- org.apache.commons.math.geometry.RotationOrder
-
public final class RotationOrder extends java.lang.ObjectThis class is a utility representing a rotation order specification for Cardan or Euler angles specification. This class cannot be instanciated by the user. He can only use one of the twelve predefined supported orders as an argument to either theRotation(RotationOrder,double,double,double)constructor or theRotation.getAngles(org.apache.commons.math.geometry.RotationOrder)method.- Since:
- 1.2
-
-
Field Summary
Fields Modifier and Type Field Description static RotationOrderXYXSet of Euler angles.static RotationOrderXYZSet of Cardan angles.static RotationOrderXZXSet of Euler angles.static RotationOrderXZYSet of Cardan angles.static RotationOrderYXYSet of Euler angles.static RotationOrderYXZSet of Cardan angles.static RotationOrderYZXSet of Cardan angles.static RotationOrderYZYSet of Euler angles.static RotationOrderZXYSet of Cardan angles.static RotationOrderZXZSet of Euler angles.static RotationOrderZYXSet of Cardan angles.static RotationOrderZYZSet of Euler angles.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3DgetA1()Get the axis of the first rotation.Vector3DgetA2()Get the axis of the second rotation.Vector3DgetA3()Get the axis of the second rotation.java.lang.StringtoString()Get a string representation of the instance.
-
-
-
Field Detail
-
XYZ
public static final RotationOrder XYZ
Set of Cardan angles. this ordered set of rotations is around X, then around Y, then around Z
-
XZY
public static final RotationOrder XZY
Set of Cardan angles. this ordered set of rotations is around X, then around Z, then around Y
-
YXZ
public static final RotationOrder YXZ
Set of Cardan angles. this ordered set of rotations is around Y, then around X, then around Z
-
YZX
public static final RotationOrder YZX
Set of Cardan angles. this ordered set of rotations is around Y, then around Z, then around X
-
ZXY
public static final RotationOrder ZXY
Set of Cardan angles. this ordered set of rotations is around Z, then around X, then around Y
-
ZYX
public static final RotationOrder ZYX
Set of Cardan angles. this ordered set of rotations is around Z, then around Y, then around X
-
XYX
public static final RotationOrder XYX
Set of Euler angles. this ordered set of rotations is around X, then around Y, then around X
-
XZX
public static final RotationOrder XZX
Set of Euler angles. this ordered set of rotations is around X, then around Z, then around X
-
YXY
public static final RotationOrder YXY
Set of Euler angles. this ordered set of rotations is around Y, then around X, then around Y
-
YZY
public static final RotationOrder YZY
Set of Euler angles. this ordered set of rotations is around Y, then around Z, then around Y
-
ZXZ
public static final RotationOrder ZXZ
Set of Euler angles. this ordered set of rotations is around Z, then around X, then around Z
-
ZYZ
public static final RotationOrder ZYZ
Set of Euler angles. this ordered set of rotations is around Z, then around Y, then around Z
-
-
Method Detail
-
toString
public java.lang.String toString()
Get a string representation of the instance.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of the instance (in fact, its name)
-
getA1
public Vector3D getA1()
Get the axis of the first rotation.- Returns:
- axis of the first rotation
-
getA2
public Vector3D getA2()
Get the axis of the second rotation.- Returns:
- axis of the second rotation
-
getA3
public Vector3D getA3()
Get the axis of the second rotation.- Returns:
- axis of the second rotation
-
-