MATRIXLF, the Transformation Matrix

For all the transformation functions, the 3-by-3 transformation matrix is specified as a one-dimensional array in the following order:

(M11, M12, 0, M21, M22, 0, M31, M32, 1)

This one-dimensional array corresponds to the data structure, MATRIXLF. The elements in the data structure correspond to the matrix multiplication constants, as shown in the following table.

┌──────────────────────────────┬──────────────────────────────┐
│Transformation Type           │Matrix Values                 │
├──────────────────────────────┼──────────────────────────────┤
│Scaling, Reflection           │M11 and M22                   │
├──────────────────────────────┼──────────────────────────────┤
│Rotation                      │M11, M12, M21, M22            │
├──────────────────────────────┼──────────────────────────────┤
│Translation                   │M31 and M32                   │
└──────────────────────────────┴──────────────────────────────┘

All nine elements do not have to be specified for every transformation function. However, those specified are interpreted as the first n of the nine. If the third, sixth, and ninth elements are specified, they must be 0, 0, and 1 respectively.


[Back: Model for Building the Transformation Matrix]
[Next: MATRIXLF Structure]