jit.axis2quat
Description
Convert an angle-axis representation of an orientation to a quaternion. 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]
The angle-axis to be converted. (default = 0 0 0 1)
normalize [int]
Normalize the quaternion before outputting (default = 0).
quat [4 floats]
g/s(get)
The resulting quaternion after the conversion.
Common Box Attributes
Messages
bang
Output the resulting quaternion conversion.
list
Arguments
angle
[float]
x [float]
y [float]
z [float]
x [float]
y [float]
z [float]
A four element list of floating point numbers interpreted as an angle in degrees and an axis, is converted to a quaternion and output.
See Also
Name | Description |
---|---|
jit.quat | |
jit.quat2axis | |
jit.quat2euler | |
jit.euler2quat | |
jit.anim.node |