isOverlapping method

bool isOverlapping(
  1. LatLngBounds other
)

Checks whether at least one edge of the other bounding box is overlapping with this bounding box.

Bounding boxes that touch each other but don't overlap are counted as not overlapping.

Implementation

bool isOverlapping(LatLngBounds other) => !(south > other.north ||
    north < other.south ||
    east < other.west ||
    west > other.east);