add static method

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

Implementation

static Vector2 add(Vector2 a, Vector2 b) {
  return Vector2(a.x + b.x, a.y + b.y);
}