sub method

void sub(
  1. Vec2 other
)

Implementation

void sub(Vec2 other) {
  x -= other.x;
  y -= other.y;
}