translate method

Matrix3 translate(
  1. num tx,
  2. num ty
)

Implementation

Matrix3 translate(num tx, num ty) {
  final te = elements;

  te[0] += tx * te[2];
  te[3] += tx * te[5];
  te[6] += tx * te[8];
  te[1] += ty * te[2];
  te[4] += ty * te[5];
  te[7] += ty * te[8];

  return this;
}