Combinations of transformations
← Back: Homogeneous coordinates | Overview: Transformations | Next: Inverse transformation → |
In the previous subarticle homogeneous coordinates and transformation matrices for translation and rotation around the three axes are introduced:
These transformation matrices can be combined by multiplying them. The most important thing that has to be considered combining transformations, is the order of the transformations. Different orders lead to different results. Descriptively seen, rotation is always applied around the origin or around axis intersecting with the origin, respectively. So the rotational part is depending on the respective input coordinates. Different orders of transformations result in different input coordinates for each transformation.
The following example shows descriptively as well as computationally, that the order of transformations is important. Consider a translation matrix and a rotation matrix
. The upper three subfigures on the right
the general homogeneous transformation matrix were introduced.
consists of a rotation matrix and a translation vector:
As shown in the subarticle homogeneous coordinates, multiplication of with a vector corresponds to rotating the coordinates first and then adding the translation vector.
Pre-/Post-...
transformation matrices for translation and rotation around the three axes are introduced: