equals method

bool equals(
  1. Vec other
)

Implementation

bool equals(Vec other) => x == other.x && y == other.y;