containsCoordinates method
- Coordinates point
override
Checks if the specified point is contained within the geographic area.
Parameters
- IN point A Coordinates object representing the point to check.
Returns
- True if the point is within the geographic area, false otherwise.
Implementation
@override
bool containsCoordinates(final Coordinates point) {
return (point.longitude >= topLeft.longitude &&
point.longitude <= bottomRight.longitude) &&
(point.latitude <= topLeft.latitude &&
point.latitude >= bottomRight.latitude);
}