MutableAffine.scale constructor

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

Create a matrix representing a scaling transform.

Implementation

MutableAffine.scale(double sx, double sy)
    : _storage = Matrix3.zero(),
      super._p() {
  set(0, 0, sx);
  set(1, 1, sy);
  set(2, 2, 1);
}