contains method
Tests whether this rectangle completely contains another rectangle.
Checks if the specified rectangle lies entirely within the bounds of this rectangle. The contained rectangle's bounds must be completely inside or exactly match this rectangle's bounds for the test to return true.
Parameters
area: The RectangleGeographicArea to test for containment.
Returns
trueif this rectangle completely contains the other rectangle,falseotherwise.
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;
}