Enum RotationOrder
- All Implemented Interfaces:
Serializable
,Comparable<RotationOrder>
,java.lang.constant.Constable
Enumerate representing a rotation order specification for Cardan or Euler angles.
Since Hipparchus 1.7 this class is an enumerate class.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSet of Euler angles.Set of Cardan angles.Set of Euler angles.Set of Cardan angles.Set of Euler angles.Set of Cardan angles.Set of Cardan angles.Set of Euler angles.Set of Cardan angles.Set of Euler angles.Set of Cardan angles.Set of Euler angles. -
Method Summary
Modifier and TypeMethodDescriptiongetA1()
Get the axis of the first rotation.getA2()
Get the axis of the second rotation.getA3()
Get the axis of the third rotation.<T extends CalculusFieldElement<T>>
T[]getAngles
(FieldRotation<T> rotation, RotationConvention convention) Get the Cardan or Euler angles corresponding to the instance.double[]
getAngles
(Rotation rotation, RotationConvention convention) Get the Cardan or Euler angles corresponding to the instance.static RotationOrder
getRotationOrder
(String value) Get the rotation order corresponding to a string representation.toString()
Get a string representation of the instance.static RotationOrder
Returns the enum constant of this type with the specified name.static RotationOrder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant 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
-
-
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
-
toString
Get a string representation of the instance.- Overrides:
toString
in classEnum<RotationOrder>
- Returns:
- a string representation of the instance (in fact, its name)
-
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 third rotation.- Returns:
- axis of the third rotation
-
getRotationOrder
Get the rotation order corresponding to a string representation.- Parameters:
value
- name- Returns:
- a rotation order object
- Since:
- 1.7
-
getAngles
Get the Cardan or Euler angles corresponding to the instance.- Parameters:
rotation
- rotation from which angles should be extractedconvention
- convention to use for the semantics of the angle- Returns:
- an array of three angles, in the order specified by the set
- Since:
- 3.1
-
getAngles
public <T extends CalculusFieldElement<T>> T[] getAngles(FieldRotation<T> rotation, RotationConvention convention) Get the Cardan or Euler angles corresponding to the instance.- Type Parameters:
T
- type of the field elements- Parameters:
rotation
- rotation from which angles should be extractedconvention
- convention to use for the semantics of the angle- Returns:
- an array of three angles, in the order specified by the set
- Since:
- 3.1
-