This is a tutorial on vector algebra and matrix algebra from the viewpoint of computer graphics. It covers most vector and matrix topics needed to read college-level computer graphics text books.

**Description**

Computer graphics requires more math than is covered here. The purpose of these notes is to expand on the mathematical appendix included with most graphics books, not to teach the mathematical material in the main text of those books.

Although primarily aimed at university computer science students, this tutorial is useful to any programmer interested in 3D computer graphics or 3D computer game programming. In spite of their appealing blood-and-gore covers, mass trade books on game programming require the same understanding of vectors and matrices as college text books (and usually defer these topics to the same skimpy mathematical appendix).

**Table of Contents**

- Points and Lines
- Vectors, Points, and Column Matrices
- Matrix Addition
- Vector Addition
- Vector Length
- Vector Direction
- Scaling and Unit Vectors
- The Dot Product
- Length and the Dot Product
- The Angle between Two Vectors
- The Angle between 3D Vectors
- Projecting one Vector onto Another
- Vector Cross Product
- Matrices and Simple Matrix Operations
- Matrix-Column Matrix Multiplicaton
- Matrix-Matrix Multiplication
- Identity Matrix and Matrix Inverse

**Book Details**