subtract static method

Vec2D subtract(
  1. Vec2D o,
  2. Vec2D a,
  3. Vec2D b
)

Implementation

static Vec2D subtract(Vec2D o, Vec2D a, Vec2D b) {
  o[0] = a[0] - b[0];
  o[1] = a[1] - b[1];
  return o;
}