intersectsEnvelope method

bool intersectsEnvelope(
  1. Envelope other
)

Tests if the region defined by other intersects the region of this Envelope.

@param other the Envelope which this Envelope is being checked for intersecting @return true if the Envelopes intersect

Implementation

bool intersectsEnvelope(Envelope other) {
  if (isNull() || other.isNull()) {
    return false;
  }
  return !(other._minx > _maxx ||
      other._maxx < _minx ||
      other._miny > _maxy ||
      other._maxy < _miny);
}