Function find_polygon_intersection
Source pub fn find_polygon_intersection<P: GetXY + PartialEq, Q: NewXY + Clone>(
vector_polygons: &[Vec<Vec<P>>],
segment1: &Segment,
segment2: &Segment,
) -> Option<IntersectionOfSegmentsRobust<Q>>
Expand description
Find the intersection of two segments if it exists
§Parameters
vector_polygons: the collection of polygons
segment1: the first segment
segment2: the second segment
§Returns
The intersection if it exists. Undefined otherwise.