add method

Vector2 add(
  1. Vector2 other
)

Implementation

Vector2 add(Vector2 other) => Vector2(x + other.x, y + other.y);