quaternion.toangleaxis

Edit

Returns the angle/axis representation of the quaternion, as 4 numbers.

angle, ax, ay, az = quaternion.toangleaxis(q)

Arguments

NameTypeDescription
qquaternion The quaternion.

Returns

NameTypeDescription
anglenumber The number of radians the quaternion rotates around the axis of rotation.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

See also