Mat2D.fromScaling constructor

Mat2D.fromScaling(
  1. Vec2D scaling
)

Implementation

Mat2D.fromScaling(Vec2D scaling)
    : _buffer = Float32List.fromList([scaling.x, 0, 0, scaling.y, 0, 0]);