add method

void add(
  1. Vec2 other
)

Implementation

void add(Vec2 other) {
  x += other.x;
  y += other.y;
}