Matrix.translate
void translate(double tx, double ty)Applies a translation by tx, ty to the transformation in 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.
Parameters
tx | amount to translate in the X direction |
ty | amount to translate in the Y direction |