polygon_intersection

Function polygon_intersection 

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

Compute the intersection of two polygons

§Arguments

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

§Returns

  • Array of intersection polygon vertices