add2 method

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

Implementation

Vector2 add2(Vector a, Vector b) {
  x = a.x + b.x;
  y = a.y + b.y;

  return this;
}