m = Matrix2D(sx, sy, angle)
syand the rotation factor specified by
angleinto a 2x2 transformation matrix and returns it. The 2x2 transformation matrix is returned as a table which has the following fields initialized:
You could then pass the matrix to functions like TransformBox() or TransformPoint().