addVectors method

Vector2 addVectors(
  1. Vector2 a,
  2. Vector2 b
)

Implementation

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

  return this;
}