This article is part 5 in the series about transformation matrices:
- Part 1: Coordinate systems and transformations between them
- Part 2: Scaling objects with a transformation matrix
- Part 3: Shearing objects with a transformation matrix
- Part 4: Translating objects with a transformation matrix
- Part 5: Combining Matrix Transformations (this article)
We can compose a series of transformations by multiplying the matrices that define the transformation, for example if we have one object in the world with arbitrary position and orientation that we want to render through a camera lens located in the same world also with arbitrary position and orientation, to get the coordinates of the object relative to the camera lens we must transform the object from object space to world space (transformation known as model transform) denoted by the matrix
We can associate the transformation matrices and have a single matrix to transform vertices of the object directly to camera space
Now if we have two transformation matrices
We can see that the rows of the product
Rotation followed by translation
Given the vector
Let’s analyze the product
Which when multiplied by
Translation followed by rotation
Given the vector
Let’s analyze the produce
Which when multiplied by
Note that both the vector
Transformations between coordinate systems
The following figure shows two coordinate system, the one with the basis vectors

coordinate systems
The value of
Similarly we can express
Note that both equations express
We can then introduce
This is the frame-to-canonical transformation matrix for the
The inverse transformation is given by a translation followed by a rotation
Which is the same as finding the value of
This is the canonical-to-frame transformation matrix for the