equals method

bool equals(
  1. Vector2 v
)

Implementation

bool equals(Vector2 v) {
  return ((v.x == x) && (v.y == y));
}