Name
TransformPoint -- apply affine transformation to point (V10.0)
Synopsis
tx, ty = TransformPoint(px, py, m)
Function
This function applies the 2x2 transformation matrix specified by m to the point specified by px and py and returns the coordinates of the transformed point. The transformation matrix m must be passed as a table that 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 can use the Matrix2D() function to construct such a matrix. See Matrix2D for details.

Inputs
px
horizontal point coordinate
py
vertical point coordinate
m
table containing a 2x2 transformation matrix
Results
tx
transformed horizontal position
ty
transformed vertical position

Show TOC