->Q


quaternions
Since v1.0.0
Available on all platforms
See also

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

Each quaternion dimension is encoded with 16 bits.

Signature

Examples

// Rotate by 90 degrees about y axis 0.7071 // w 0.0 // x 0.7071 // y 0.0 // z ->Q