4.3.2. Quaternion Transforms

We will now study a subclass of the quaternion set, namely those of unit length, called unit quaternions. The most important fact about unit quaternions is that they can represent any three-dimensional rotation, and that this representation is extremely compact and simple.

Now we will describe what makes unit quaternions so useful for rotations and orientations. First, put the four coordinates of a point or vector p = ( p x p y p z p w ) T into the components of a quaternion p ^ , and assume that we have a unit quaternion q ^ = ( sin ϕ u q , cos ϕ ) . One can prove that


q ^ p ^ q ^ - 1

rotates p ^ (and thus the point p) around the axis ...

Get Real-Time Rendering, Fourth Edition, 4th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.