Class RotationOrder
java.lang.Object
org.apache.commons.math3.geometry.euclidean.threed.RotationOrder
This 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
the
Rotation(RotationOrder,double,double,double)
constructor or the Rotation.getAngles(org.apache.commons.math3.geometry.euclidean.threed.RotationOrder)
method.- Since:
- 1.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Vector3D
Axis of the first rotation.private final Vector3D
Axis of the second rotation.private final Vector3D
Axis of the third rotation.private final String
Name of the rotations order.static final RotationOrder
Set of Euler angles.static final RotationOrder
Set of Cardan angles.static final RotationOrder
Set of Euler angles.static final RotationOrder
Set of Cardan angles.static final RotationOrder
Set of Euler angles.static final RotationOrder
Set of Cardan angles.static final RotationOrder
Set of Cardan angles.static final RotationOrder
Set of Euler angles.static final RotationOrder
Set of Cardan angles.static final RotationOrder
Set of Euler angles.static final RotationOrder
Set of Cardan angles.static final RotationOrder
Set of Euler angles. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
RotationOrder
(String name, Vector3D a1, Vector3D a2, Vector3D a3) Private constructor. -
Method Summary
-
Field Details
-
XYZ
Set of Cardan angles. this ordered set of rotations is around X, then around Y, then around Z -
XZY
Set of Cardan angles. this ordered set of rotations is around X, then around Z, then around Y -
YXZ
Set of Cardan angles. this ordered set of rotations is around Y, then around X, then around Z -
YZX
Set of Cardan angles. this ordered set of rotations is around Y, then around Z, then around X -
ZXY
Set of Cardan angles. this ordered set of rotations is around Z, then around X, then around Y -
ZYX
Set of Cardan angles. this ordered set of rotations is around Z, then around Y, then around X -
XYX
Set of Euler angles. this ordered set of rotations is around X, then around Y, then around X -
XZX
Set of Euler angles. this ordered set of rotations is around X, then around Z, then around X -
YXY
Set of Euler angles. this ordered set of rotations is around Y, then around X, then around Y -
YZY
Set of Euler angles. this ordered set of rotations is around Y, then around Z, then around Y -
ZXZ
Set of Euler angles. this ordered set of rotations is around Z, then around X, then around Z -
ZYZ
Set of Euler angles. this ordered set of rotations is around Z, then around Y, then around Z -
name
Name of the rotations order. -
a1
Axis of the first rotation. -
a2
Axis of the second rotation. -
a3
Axis of the third rotation.
-
-
Constructor Details
-
RotationOrder
Private constructor. This is a utility class that cannot be instantiated by the user, so its only constructor is private.- Parameters:
name
- name of the rotation ordera1
- axis of the first rotationa2
- axis of the second rotationa3
- axis of the third rotation
-
-
Method Details
-
toString
Get a string representation of the instance. -
getA1
Get the axis of the first rotation.- Returns:
- axis of the first rotation
-
getA2
Get the axis of the second rotation.- Returns:
- axis of the second rotation
-
getA3
Get the axis of the second rotation.- Returns:
- axis of the second rotation
-