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

jit.quat2axis Reference

Quaternion to angle-axis conversion

jit.quat2axis

Description

Convert a quaternion (a four-dimensional vector) to an angle-axis representation. 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

angleaxis [4 floats]

g/s(get)

The resulting angle-axis values after the conversion, in the form of angle (in degrees) and an axis.

normalize [int]

Normalize the quaternion before outputting (default = 0).

quat [4 floats]

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

Common Box Attributes

Messages

bang

Output the resulting angle-axis values.

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 angle-axis values and output.

See Also

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