This appendix is meant to be a review of many mathematical formulas and equations that are used continually in game programming. You will find an overview of trigonometry, vector math, matrices, and so on. I suggest you make sure you understand the following pages thoroughly before reading the more involved chapters on geometry tests. These pages should help you refresh some useful math concepts that will be repeatedly used in the book.

There are a number of distance-related computations, measures, and indices that can prove useful in your game programming.

The easiest way to compute the distance between two points is to use the Euclidean distance metric. Given *P* and *Q* in a 3D world, ...

Start Free Trial

No credit card required