translate method

AffineTransformation translate(
  1. double x,
  2. double y
)

Updates the value of this transformation to that of a translation transformation composed with the current value.

@param x the value to translate by in the x direction @param y the value to translate by in the y direction @return this transformation, with an updated matrix

Implementation

AffineTransformation translate(double x, double y) {
  compose(translationInstance(x, y));
  return this;
}