Mat2D.fromScaleAndTranslation constructor

Mat2D.fromScaleAndTranslation(
  1. double x,
  2. double y,
  3. double tx,
  4. double ty,
)

Implementation

Mat2D.fromScaleAndTranslation(double x, double y, double tx, double ty)
    : _buffer = Float32List.fromList([x, 0, 0, y, tx, ty]);