Concatenation

This whole chapter has been building up to this particular section. Concatenation is just a fancy name for combining transformation matrices into a single combo matrix. Earlier in this chapter I mentioned several common combinations: scaling with respect to an object's own center point, rotating with respect to the center point (or a vertex), and combining the 3D rotations. We'll use them as examples to demonstrate the concatenation process.

This process can be used for any combination of translation, scaling, and rotation, not just the examples mentioned earlier. Any time you plan to perform more than one transformation within the same frame, you can save a lot of processor time by combining them. It might take you more time up ...

Get Beginning Math and Physics for Game Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.