9.2. Rotating and translating coordinates#
We now know how to construct a frame, which is a 4x4 matrix that represents the position and orientation of a local coordinate system in respect to a reference coordinate system.
We learned that a frame always has this form:
where:
the \(R\) sub-matrix is a function of three rotation angles and represents the orientation of the local coordinate system;
the \(P\) vector is the position of the local coordinate system’s origin.
In addition to represent positions and orientations, the same matrix can also be represent rigid transformations such as translations and rotations. In this case, this matrix is called a homogeneous transform, and:
the \(R\) sub-matrix represents a rotation;
the \(P\) vector is a translation.
Any coordinate (point, vector or frame) that is multiplied by the homogeneous transform will be rotated by \(R\) and translated by \(P\):
The following examples show how a same homogeneous transform can move either points, vectors or frames.