containsBoundingBox method

bool containsBoundingBox(
  1. BoundingBox box
)

Tests if this bounding box completely contains another bounding box.

box The bounding box to test for containment Returns true if the given box is completely within this boundary

Implementation

bool containsBoundingBox(BoundingBox box) {
  return contains(box.minLatitude, box.minLongitude) && contains(box.maxLatitude, box.maxLongitude);
}