translate method

GMatrix translate(
  1. double dx,
  2. double dy
)

Translates the matrix along the x and y axes, as specified by the dx and dy parameters.

Implementation

GMatrix translate(double dx, double dy) {
  tx += dx;
  ty += dy;
  return this;
}