Name
cmatrix:Translate -- translate matrix
Synopsis
cmatrix:Translate(tx, ty)
Function
Applies a translation by
tx
,
ty
to the transformation in the matrix. The effect of the new transformation is to first translate the coordinates by
tx
and
ty
, then apply the original transformation to the coordinates.
Inputs
tx
amount to translate in the X direction
ty
amount to translate in the Y direction
Show TOC