Name
Matrix2D -- construct 2x2 transformation matrix (V10.0)
Synopsis
m = Matrix2D(sx, sy, angle)
Function
This function combines the scaling coefficients specified by sx and sy and the rotation factor specified by angle into a 2x2 transformation matrix and returns it. The 2x2 transformation matrix is returned as a table which has the following fields initialized:

sx:
Amount of scaling on the x axis.

rx:
Amount of rotation on the x axis.

ry:
Amount of rotation on the y axis.

sy:
Amount of scaling on the y axis.

You could then pass the matrix to functions like TransformBox() or TransformPoint().

Inputs
sx
scale x coefficient
sy
scale y coefficient
angle
rotation angle
Results
m
2x2 transformation matrix returned as a table

Show TOC