tx, ty, tw, th = TransformBox(x, y, w, h, m[, origin, anchorx, anchory])
m
to the
rectangle specified by x
, y
, w
and h
and returns the size and coordinates
of the transformed rectangle. The origin
parameter is a boolean
value which specifies whether or not the rectangle should be moved to the
origin before transforming it. The anchorx
and anchory
values 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. anchorx
and anchory
both 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
fields initialized:
sx:
rx:
ry:
sy:
You can use the Matrix2D() function to construct such a matrix. See Matrix2D for details.
True
)