6

Understanding Vector and Matrix

Welcome to Chapter 6! In the previous chapter, we added a simple UI with elements to show the status of the program and timings for some of the functions, plus some simple controls to change the behavior of the program.

In this chapter, we will explore both the mathematical elements and the computer data types vector and matrix. We start with a review of the basic properties of each type and the operations between the same data types, as well as operations between vectors and matrices. The focus here is on the execution of these operations using the OpenGL Mathematics (GLM) library, as the library does all the operations we need with simple function calls.

At the end of the chapter, a practical exercise on matrix ...

Get C++ Game Animation Programming - Second Edition 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.