sub2 method

Vector2 sub2(
  1. Vector a,
  2. Vector b
)

Implementation

Vector2 sub2(Vector a, Vector b) {
  x = a.x - b.x;
  y = a.y - b.y;

  return this;
}