polygons_intersections

Function polygons_intersections 

Source
pub fn polygons_intersections<P: GetXY + PartialEq>(
    vector_polygons: &[Vec<Vec<P>>],
    include_self_intersections: bool,
) -> Vec<Intersection>
Expand description

Find all intersections within a collection of polygons

NOTE: Use polygons_intersections_ref instead if each polygon is their own ref

§Parameters

  • polygons: the collection of polygons
  • include_self_intersections: whether to include self intersections or not

§Returns

Found intersections