contains method
Checks if this rectangle completely contains another rectangle.
Parameters
- IN area The RectangleGeographicArea to check containment of.
Returns
- True if this rectangle contains the other, false otherwise.
Implementation
bool contains(final RectangleGeographicArea area) {
return bottomRight.longitude >= area.bottomRight.longitude &&
topLeft.longitude <= area.topLeft.longitude &&
topLeft.latitude >= area.topLeft.latitude &&
bottomRight.latitude <= area.bottomRight.latitude;
}