quaternion.pack

Edit

Packs numbers into a quaternion. Note that these are raw quaternion components, not angle/axis.



Arguments

NameTypeDescription
xnumber The x component of the quaternion.
ynumber The y component of the quaternion.
znumber The z component of the quaternion.
wnumber The w component of the quaternion.

Returns

NameTypeDescription
qquaternion The new quaternion.

Returns the identity quaternion.

Arguments

None

Returns

NameTypeDescription
qquaternion The new quaternion.

See also