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).
  • 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 Vector3f matrixToEuler(Matrix3f rotMatrix, 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)