Chapter 3: Implementing Matrices

In the context of game animation, a matrix represents an affine transformation. It linearly maps points from one space to another. A mesh is represented by vertices, which are just points in space. These vertices are moved by multiplying them by a matrix.

In this chapter, you will learn matrix math and how to implement matrices in code. By the end of this chapter, you will have built a robust matrix library that can be used in any project. Matrices are important; they play a big role in the graphics pipeline. It's hard to render anything without using matrices.

You will only need to implement a square, 4 x 4 matrix. By the end of this chapter, you should be able to do the following:

  • Understand what a matrix ...

Get Hands-On C++ Game Animation Programming 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.