Matrix.translation constructor

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

Create a translation matrix.

Implementation

factory Matrix.translation(double tx, double ty) =>
    Matrix(1, 0, 0, 1, tx, ty);