A newer version of Max is available. Click here to access the latest version of the documentation

jit.quat2euler Reference

Quaternion to Euler conversion

jit.quat2euler

Description

Convert a quaternion (a four-dimensional vector) to Euler X Y Z angles. Jitter quaternions are ordered X Y Z W.

Examples

Discussion

A quaternion is a mathematical construct that is a four dimensional vector, and can be visualized as a rotation around an arbitrary axis. Quaternions are a useful representation of an orientation in 3D space.

Attributes

euler [3 floats]

g/s(get)

The resulting Euler angles after the conversion.

normalize [int]

Normalize the quaternion before outputting (default = 0).

quat [4 floats]

The quaternion to be converted. (default = 0 0 0 1)

rotate_order [symbol]

Set the order rotations are applied (default = auto). E.G. if set to xyz , the object is first rotated around its X axis, then Y, and finally Z. The default of auto implements yzx ordering. To replicate Max 5, use zyx .

Possible values:

'auto'
'xyz'
'xzy'
'yxz'
'yzx'
'zxy'
'zyx'

Common Box Attributes

Messages

bang

Output the resulting Euler angles.

list

Arguments

x [float]
y [float]
z [float]
w [float]
A four element list of floating point numbers interpreted as a quaternion, is converted to Euler angles and output.

See Also

Name Description
jit.quat
jit.euler2quat
jit.axis2quat
jit.quat2axis
jit.anim.node