transformMat2 static method

Vec2D transformMat2(
  1. Vec2D o,
  2. Vec2D a,
  3. Mat2D m
)

Implementation

static Vec2D transformMat2(Vec2D o, Vec2D a, Mat2D m) {
  final x = a.x;
  final y = a.y;
  o.x = m[0] * x + m[2] * y;
  o.y = m[1] * x + m[3] * y;
  return o;
}