quaternion
The quaternion w + xi + yj + zk. Arithmetic stays exact when the parts are.
w(number) --x(number) --y(number) --z(number) --
The quaternion w + xi + yj + zk. Arithmetic stays exact when the parts are.
w (number) -- x (number) -- y (number) -- z (number) -- |q| = sqrt(w^2 + x^2 + y^2 + z^2), exact. Also works on tensors.
q (quaternion) -- |q|^2, exact.
q (quaternion) -- q^-1 = conjugate(q) / |q|^2, exact.
q (quaternion) -- True if |q| = 1.
q (quaternion) -- w, the real part.
q (quaternion) -- (x, y, z) as a vector.
q (quaternion) -- The unit quaternion rotating by angle (radians) about the axis (ax, ay, az).
ax (number) -- ay (number) -- az (number) -- angle (number) -- radiansThe rotation axis and angle of a unit quaternion.
q (quaternion) -- The rotation quaternion for roll, pitch, yaw (radians).
roll (number) -- pitch (number) -- yaw (number) -- The rotation q1 followed by q2 (q2 * q1).
q2 (quaternion) -- q1 (quaternion) -- The 3x3 rotation matrix of q.
q (quaternion) -- e^q.
q (quaternion) -- The natural logarithm of q.
q (quaternion) -- q^t for a real t.
q (quaternion) -- t (number) -- Spherical linear interpolation from q0 (t = 0) to q1 (t = 1).
q0 (quaternion) -- q1 (quaternion) -- t (number) --