Chapter 2. Geometry Snippets

KEY TOPICS

This chapter addresses all the geometry topics that appear throughout the book. In fact, this collection of geometric methods can be used in nearly every game programming challenge you are likely to encounter. The Pythagorean theorem surfaces whenever you use vectors to control movement or when you use right triangles to model various scenarios. The distance formula is used in both collision detection and the physics of motion. Parabolas are used to represent projectile paths in 2D and 3D motion. Finally, circles and spheres are used to model round objects and motion paths, ...

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.