scale static method

void scale(
  1. Mat2D o,
  2. Mat2D a,
  3. Vec2D v
)

Implementation

static void scale(Mat2D o, Mat2D a, Vec2D v) {
  double a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5];
  o[0] = a0 * v.x;
  o[1] = a1 * v.x;
  o[2] = a2 * v.y;
  o[3] = a3 * v.y;
  o[4] = a4;
  o[5] = a5;
}