Matrix.initTranslate

Initializes matrix to a transformation that translates by tx and ty in the X and Y dimensions, respectively.

class Matrix
void
initTranslate
(
double tx
,
double ty
)

Parameters

tx double

amount to translate in the X direction

ty double

amount to translate in the Y direction

Meta