Package com.jme3.bullet
Enum Class RotationOrder
- All Implemented Interfaces:
Serializable
,Comparable<RotationOrder>
,Constable
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
-
Method Summary
Modifier and TypeMethodDescriptionmatrixToEuler
(Matrix3f rotMatrix, Vector3f storeResult) Convert a rotation matrix to Euler angles for this RotationOrder.static RotationOrder
Returns the enum constant of this class with the specified name.static RotationOrder[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
XYZ
X then Y then Z (native name: RO_XYZ) -
XZY
X then Z then Y (native name: RO_XZY) -
YXZ
Y then X then Z (native name: RO_YXZ) -
YZX
Y then Z then X (native name: RO_YZX) -
ZXY
Z then X then Y (native name: RO_ZXY) -
ZYX
Z then Y then X (native name: RO_ZYX)
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
matrixToEuler
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)
-