A simple but effective set of routines are included, organised as a library, covering both 2D and 3D graphics – taking a parallel approach to mathematical theory, and showing the reader how to incorporate it into example programs. This approach both demystifies the mathematics and demonstrates its relevance to 2D and 3D computer graphics.