Matrix.initTranslate

void initTranslate(double tx, double ty)

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

Parameters

txamount to translate in the X direction
tyamount to translate in the Y direction