Transpose

The last matrix operation you need for future chapters is the transpose. This operation is used in Chapter 6 when we discuss the differences between OpenGL and DirectX. The transpose is a simple yet powerful operation. So far, we've used the row and column location to designate a particular entry. The transpose operation simply swaps each entry's row and column. The transpose can be applied to any size matrix, but we'll look at a 3×3 first so that you can quickly spot the pattern.

Transpose for a 3×3 Matrix

NOTE

The T superscript is the symbol for transpose, so the transpose of matrix A is written as AT.

Example 5.10: Transpose of a ...

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.