tx, ty, tw, th = TransformBox(x, y, w, h, m[, origin, anchorx, anchory])
mto the rectangle specified by
hand returns the size and coordinates of the transformed rectangle. The
originparameter is a boolean value which specifies whether or not the rectangle should be moved to the origin before transforming it. The
anchoryvalues specify the anchor point to use for the transformation. This should be a floating point value between 0.0 and 1.0 where 0.0 means the left/upper edge and 1.0 indicates the right/bottom edge.
anchoryboth default to 0 which means the upper-left corner of the rectangle is the default anchor point.
The transformation matrix
m must be passed as a table that has the following
You can use the Matrix2D() function to construct such a matrix. See Matrix2D for details.