Mat2D.fromTranslation constructor

Mat2D.fromTranslation(
  1. Vec2D translation
)

Implementation

Mat2D.fromTranslation(Vec2D translation)
    : _buffer = Float32List.fromList(
          [1.0, 0.0, 0.0, 1.0, translation.x, translation.y]);