Enum AxisSequence

java.lang.Object
java.lang.Enum<AxisSequence>
org.apache.commons.geometry.euclidean.threed.rotation.AxisSequence
All Implemented Interfaces:
Serializable, Comparable<AxisSequence>

public enum AxisSequence extends Enum<AxisSequence>
Enum containing rotation axis sequences for use in defining 3 dimensional rotations.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Set 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.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the first rotation axis.
    Get the second rotation axis.
    Get the third rotation axis.
    Get the axis sequence type.
    Get an array containing the 3 rotation axes in order.
    Returns the enum constant of this type with the specified name.
    static AxisSequence[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • XYZ

      public static final AxisSequence XYZ
      Set of Tait-Bryan angles around the X, Y, and Z axes in that order.
    • XZY

      public static final AxisSequence XZY
      Set of Tait-Bryan angles around the X, Z, and Y axes in that order.
    • YXZ

      public static final AxisSequence YXZ
      Set of Tait-Bryan angles around the Y, X, and Z axes in that order.
    • YZX

      public static final AxisSequence YZX
      Set of Tait-Bryan angles around the Y, Z, and X axes in that order.
    • ZXY

      public static final AxisSequence ZXY
      Set of Cardan angles. this ordered set of rotations is around Z, then around X, then around Y
    • ZYX

      public static final AxisSequence ZYX
      Set of Tait-Bryan angles around the Z, Y, and X axes in that order.
    • XYX

      public static final AxisSequence XYX
      Set of Euler angles around the X, Y, and X axes in that order.
    • XZX

      public static final AxisSequence XZX
      Set of Euler angles around the X, Z, and X axes in that order.
    • YXY

      public static final AxisSequence YXY
      Set of Euler angles around the Y, X, and Y axes in that order.
    • YZY

      public static final AxisSequence YZY
      Set of Euler angles around the Y, Z, and Y axes in that order.
    • ZXZ

      public static final AxisSequence ZXZ
      Set of Euler angles around the Z, X, and Z axes in that order.
    • ZYZ

      public static final AxisSequence ZYZ
      Set of Euler angles around the Z, Y, and Z axes in that order.
  • Method Details

    • values

      public static AxisSequence[] 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

      public static AxisSequence valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getType

      Get the axis sequence type.
      Returns:
      the axis sequence type
    • getAxis1

      public Vector3D getAxis1()
      Get the first rotation axis.
      Returns:
      the first rotation axis
    • getAxis2

      public Vector3D getAxis2()
      Get the second rotation axis.
      Returns:
      the second rotation axis
    • getAxis3

      public Vector3D getAxis3()
      Get the third rotation axis.
      Returns:
      the third rotation axis
    • toArray

      public Vector3D[] toArray()
      Get an array containing the 3 rotation axes in order.
      Returns:
      a 3-element array containing the rotation axes in order