MutableAffine.translation constructor

MutableAffine.translation(
  1. double tx,
  2. double ty
)

Create a matrix representing a translation.

Implementation

MutableAffine.translation(double tx, double ty)
    : _storage = Matrix3.identity(),
      super._p() {
  set(0, 2, tx);
  set(1, 2, ty);
}