Google
Matrix Class
Namespace
Pascal
Matrix = class;
File
Description

Encapsulates a 3-by-3 affine matrix that represents a geometric transform. There are only 6 elements in this matrix, accessibly through Element property. 

 

Notes 

The Matrix object represents a two dimensional affine transform that performs a linear mapping from two dimensional coordinates to other two dimensional coordinates that preserves the "straightness" and "parallelness" of lines. Affine transformations can be constructed using sequences of translations, scales, flips, rotations, and shears. 

 

Such a coordinate transformation can be represented by a 3 row by 3 column matrix with an implied last row of [ 0 0 1 ]. This matrix transforms source coordinates (x, y) into destination coordinates (x', y') by considering them to be a column vector and multiplying the coordinate vector by the matrix according to the following process: 

 

[ x']   [  m0  m2  m4  ] [ x ]   [ m0*x + m2*y + m4 ]
[ y'] = [  m1  m3  m5  ] [ y ] = [ m1*x + m3*y + m5 ]
[ 1 ]   [  0   0   1   ] [ 1 ]   [         1        ]
Hierarchy
CommonTransfMatrix.Matrix
Related Information