Enum AxisSequence
- All Implemented Interfaces:
Serializable
,Comparable<AxisSequence>
Enum containing rotation axis sequences for use in defining 3 dimensional rotations.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSet of Euler angles around the X, Y, and X axes in that order.Set of Tait-Bryan angles around the X, Y, and Z axes in that order.Set of Euler angles around the X, Z, and X axes in that order.Set of Tait-Bryan angles around the X, Z, and Y axes in that order.Set of Euler angles around the Y, X, and Y axes in that order.Set of Tait-Bryan angles around the Y, X, and Z axes in that order.Set of Tait-Bryan angles around the Y, Z, and X axes in that order.Set of Euler angles around the Y, Z, and Y axes in that order.Set of Cardan angles.Set of Euler angles around the Z, X, and Z axes in that order.Set of Tait-Bryan angles around the Z, Y, and X axes in that order.Set of Euler angles around the Z, Y, and Z axes in that order. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
AxisSequence
(AxisSequenceType type, Vector3D axis1, Vector3D axis2, Vector3D axis3) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetAxis1()
Get the first rotation axis.getAxis2()
Get the second rotation axis.getAxis3()
Get the third rotation axis.getType()
Get the axis sequence type.Vector3D[]
toArray()
Get an array containing the 3 rotation axes in order.static AxisSequence
Returns the enum constant of this type with the specified name.static AxisSequence[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
XYZ
Set of Tait-Bryan angles around the X, Y, and Z axes in that order. -
XZY
Set of Tait-Bryan angles around the X, Z, and Y axes in that order. -
YXZ
Set of Tait-Bryan angles around the Y, X, and Z axes in that order. -
YZX
Set of Tait-Bryan angles around the Y, Z, and X axes in that order. -
ZXY
Set of Cardan angles. this ordered set of rotations is around Z, then around X, then around Y -
ZYX
Set of Tait-Bryan angles around the Z, Y, and X axes in that order. -
XYX
Set of Euler angles around the X, Y, and X axes in that order. -
XZX
Set of Euler angles around the X, Z, and X axes in that order. -
YXY
Set of Euler angles around the Y, X, and Y axes in that order. -
YZY
Set of Euler angles around the Y, Z, and Y axes in that order. -
ZXZ
Set of Euler angles around the Z, X, and Z axes in that order. -
ZYZ
Set of Euler angles around the Z, Y, and Z axes in that order.
-
-
Field Details
-
type
The type of axis sequence. -
axis1
Axis of the first rotation. -
axis2
Axis of the second rotation. -
axis3
Axis of the third rotation.
-
-
Constructor Details
-
AxisSequence
Simple constructor.- Parameters:
type
- the axis sequence typeaxis1
- first rotation axisaxis2
- second rotation axisaxis3
- third rotation axis
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getType
Get the axis sequence type.- Returns:
- the axis sequence type
-
getAxis1
Get the first rotation axis.- Returns:
- the first rotation axis
-
getAxis2
Get the second rotation axis.- Returns:
- the second rotation axis
-
getAxis3
Get the third rotation axis.- Returns:
- the third rotation axis
-
toArray
Get an array containing the 3 rotation axes in order.- Returns:
- a 3-element array containing the rotation axes in order
-