Skip to main content

overlaps

Function overlaps 

Source
pub fn overlaps<T: OverlapsPredicate>(a: &T, b: &T) -> Result<bool>
Expand description

Tests if geometries overlap (share some but not all points)

Two geometries overlap if:

  • They have the same dimension
  • Their interiors intersect
  • Neither geometry completely contains the other

§Arguments

  • a - First geometry
  • b - Second geometry

§Returns

True if geometries overlap

§Errors

Returns error if geometries are invalid