Chapter 2
All That Math Jazz
No book on 3D programming would be complete without at least one chapter on the mathematics behind 3D transformations. If you care nothing about this, move on—there's nothing to see here. After all, doesn't OpenGL take care of this stuff automatically? Certainly. But it is helpful to be familiar with what's going on inside, if only to understand the lingo of 3D-speak.
Let's define some terminology first:
- Translation: Moving an object from its initial position (see Figure 2-1, left)
- Rotation: Rotating an object around a central point of origin (see Figure 2-1, right)
- Scaling: Changing the size of an object
- Transformation: All of the above
2D Transformations ...
Get Pro OpenGL ES for iOS 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.