Enum Class RotationOrder

java.lang.Object
java.lang.Enum<RotationOrder>
com.jme3.bullet.RotationOrder
All Implemented Interfaces:
Serializable, Comparable<RotationOrder>, Constable

public enum RotationOrder extends Enum<RotationOrder>
Enumerate the orders in which axis rotations can be applied (native enum: RotateOrder).
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    X then Y then Z (native name: RO_XYZ)
    X then Z then Y (native name: RO_XZY)
    Y then X then Z (native name: RO_YXZ)
    Y then Z then X (native name: RO_YZX)
    Z then X then Y (native name: RO_ZXY)
    Z then Y then X (native name: RO_ZYX)
  • Method Summary

    Modifier and Type
    Method
    Description
    com.jme3.math.Vector3f
    matrixToEuler(com.jme3.math.Matrix3f rotMatrix, com.jme3.math.Vector3f storeResult)
    Convert a rotation matrix to Euler angles for this RotationOrder.
    Returns the enum constant of this class with the specified name.
    static RotationOrder[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

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

    • XYZ

      public static final RotationOrder XYZ
      X then Y then Z (native name: RO_XYZ)
    • XZY

      public static final RotationOrder XZY
      X then Z then Y (native name: RO_XZY)
    • YXZ

      public static final RotationOrder YXZ
      Y then X then Z (native name: RO_YXZ)
    • YZX

      public static final RotationOrder YZX
      Y then Z then X (native name: RO_YZX)
    • ZXY

      public static final RotationOrder ZXY
      Z then X then Y (native name: RO_ZXY)
    • ZYX

      public static final RotationOrder ZYX
      Z then Y then X (native name: RO_ZYX)
  • Method Details

    • values

      public static RotationOrder[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RotationOrder valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • matrixToEuler

      public com.jme3.math.Vector3f matrixToEuler(com.jme3.math.Matrix3f rotMatrix, com.jme3.math.Vector3f storeResult)
      Convert a rotation matrix to Euler angles for this RotationOrder.
      Parameters:
      rotMatrix - the matrix to convert (not null, unaffected)
      storeResult - storage for the result (modified if not null)
      Returns:
      the Euler angles (either storeResult or a new vector, not null)