Transformation matrices - Manual do Geomview
Description: Manual do Geomview

Next: ND Transformation matrices, Previous: Surface normal directions, Up: Conventions

#### 4.1.6 Transformation matrices

Some objetos incorporate 4x4 real matrices for homogeneous objeto transformations. These matrices act by multiplication on the right of vectors. Thus, if p is a 4-element row vector representing homogeneous coordinates of a point in the OOGL objeto, and A is the 4x4 matrix, then the transformed point is p' = p A. This matrix convention is common in computer graphics; it's the transpose of that often used in mathematics, where points are column vectors multiplied on the right of matrices.

Thus for Euclidean transformations, the translation components appear in the fourth row (last four elements) of A. A's last column (4th, 8th, 12th and 16th elements) are typically 0, 0, 0, and 1 respectively.