Name
cmatrix:Init -- init matrix
Synopsis
cmatrix:Init(xx, yx, xy, yy, x0, y0)
Function
Sets matrix to be the affine transformation given by xx, yx, xy, yy, x0, y0. The transformation is given by:

 
x_new = xx * x + xy * y + x0;
y_new = yx * x + yy * y + y0;

Inputs
xx
xx component of the affine transformation
yx
yx component of the affine transformation
xy
xy component of the affine transformation
yy
yy component of the affine transformation
x0
X translation component of the affine transformation
y0
Y translation component of the affine transformation

Show TOC