Matrices and Transformations Again
In Chapter 6, you learned a little bit about matrices. Let's summarize some of their properties as a little refresher:
- A matrix translates points (or vertices in our case) to a new position. This is achieved by multiplying the matrix with the point's position.
- A matrix can translate points on each axis by some amount.
- A matrix can scale points, meaning that it multiplies each coordinate of a point by some constant.
- A matrix can rotate a point around an axis.
- Multiplying an identity matrix with a point has no effect on that point.
- Multiplying one matrix with another matrix results in a new matrix. Multiplying a point with this new matrix will apply both transformations encoded in the original matrices to that ...