Loading

Q->


quaternions
Since v1.0.0
Available on all platforms
See also

The Q-> function consumes on the stack a quaternion representation into a long and push back the quaternion into 4 doubles (w, x, y, z, with z being on top).

Each quaternion dimension is encoded with 16 bits.

Signature

Examples

// Rotate by 90 degrees about y axis -2701737564586278913 Q->