Homogeneous transformation matrix (5)
The axis-angle representation.
In this blog we will introduce the second parametrization of a 3D rotation matrix. The idea is that any 3D rotation can be obtained by rotating the original coordinate system with respect to some axis by some angle .
We should first note that this is still a parametrization of three degrees of freedom: an angle has one degree of freedom; an axis is equivalent to a normal vector , which can be parametrized by two angles :
Such a parametrization is not unique when and , or and . Then , so is arbitrary. Otherwise, if , then we have
Imagine we can do some rotation such that the -axis aligns with the vector . Then we rotate around the new -axis by angle . Lastly we revert the first rotation by performing the inverse rotation of , which is the rotation . We shall prove the correctness of this approach, but for now let’s write the overall rotation as
To transform from the original coordinate system to the destination coordinate system, we read (3) from left to right as follows.
From the original coordinate system, perform some rotation such that is the -axis.
Rotate about the new -axis by angle —this rotation is .
Perform the rotation , the inverse of the rotation in Step 1.
Since is the first rotation making the -axis in Step 2 align with , the last column is exactly . That is,
Recall that a rotation matrix has 3 degrees of freedom, while a unit vector has 2. We can still have one more parameter to extend from to . In fact, without introducing an extra parameter, we already have enough ingredients to construct such a rotation matrix for (4). Using in (1), we have
Note again that when , parameter can take any value.
Let the extra parameter be . Then all rotation matrices that satisfy (4) can be written in the following form:
Then we can see that parameter simply does not matter in , for
In the future derivations, we will simply use from (5).
We will show in the next blog that the rotation in (7) indeed rotates every vector in the original coordinate system by the angle with respect to the direction .