disjoint method

bool disjoint(
  1. Envelope other
)

Tests if the region defined by other is disjoint from the region of this Envelope.

@param other the Envelope being checked for disjointness @return true if the Envelopes are disjoint

@see #intersects(Envelope)

Implementation

bool disjoint(Envelope other) {
  if (isNull() || other.isNull()) {
    return true;
  }
  return other._minx > _maxx ||
      other._maxx < _minx ||
      other._miny > _maxy ||
      other._maxy < _miny;
}