contains method

bool contains(
  1. MPPoint point
)

Check whether a point is inside the bounds

Implementation

bool contains(MPPoint point) => ((point.latitude <= northeast.latitude &&
        point.latitude >= southwest.latitude) &&
    (point.longitude <= northeast.longitude &&
        point.longitude >= southwest.longitude));