polygon_difference

Function polygon_difference 

Source
pub fn polygon_difference(
    poly1: &ArrayView2<'_, f64>,
    poly2: &ArrayView2<'_, f64>,
) -> SpatialResult<Array2<f64>>
Expand description

Compute the difference of two polygons (poly1 - poly2)

§Arguments

  • poly1 - First polygon vertices, shape (n, 2)
  • poly2 - Second polygon vertices, shape (m, 2)

§Returns

  • Array of difference polygon vertices