disjoint method

bool disjoint(
  1. Geometry g
)

Tests whether this geometry is disjoint from the argument geometry.

The disjoint predicate has the following equivalent definitions:

  • The two geometries have no point in common
  • The DE-9IM Intersection Matrix for the two geometries matches [FF*FF****]
  • ! g.intersects(this) = true
    (disjoint is the inverse of intersects)

@param g the Geometry with which to compare this Geometry @return true if the two Geometrys are disjoint

@see Geometry#intersects

Implementation

bool disjoint(Geometry g) {
  return !intersects(g);
}