Loading

->Q

quaternions

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.

->Q is available since version 1.0.0.

See also

Signatures

Examples

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