O'Reilly logo

Core Techniques and Algorithms in Game Programming by Daniel Sánchez-Crespo Dalmau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix D. Some Math Involved

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.

Distances

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

Distance Between Two Points

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required