Mat2D.fromTranslate constructor

Mat2D.fromTranslate(
  1. double x,
  2. double y
)

Implementation

Mat2D.fromTranslate(double x, double y)
    : _buffer = Float32List.fromList([1.0, 0.0, 0.0, 1.0, x, y]);