Matrix.scale constructor

Matrix.scale(
  1. double sx,
  2. double sy
)

Create a scaling matrix.

Implementation

factory Matrix.scale(double sx, double sy) => Matrix(sx, 0, 0, sy, 0, 0);