Matrix.initTranslate

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

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