translated method

AffineMatrix translated(
  1. double x,
  2. double y
)

Creates a new affine matrix, translated along the x and y axis.

Implementation

AffineMatrix translated(double x, double y) {
  return AffineMatrix(
    a,
    b,
    c,
    d,
    (a * x) + (c * y) + e,
    (b * x) + (d * y) + f,
    _m4_10,
  );
}