operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Compare two coordinates for equality.

Implementation

@override
bool operator ==(Object other) {
  return (other is GeoCoordinate2D) && (other.x == x) && (other.y == y);
}