Quaternion

Previous: Transform

A quaternion is a mathematical concept that is incredibly useful in graphics programming and game development. Just as complex numbers form a two-dimensional number system over the reals, quaternions form a four-dimensional number system over the reals.

Multiplication

Comparing quaterions again to complex numbers, multiplication provides a rotation in three-dimensional space. For instance, q * v rotates the vector v by the rotation represented by q.