operator > method

bool operator >(
  1. GeoPoint other
)

Implementation

bool operator >(GeoPoint other) {
  if (latitude > other.latitude && longitude > other.longitude) return true;
  return latitude - other.latitude + longitude - other.longitude > 0;
}