pub fn sort_and_join_overlapping_intersects<P, R, T>(
    intersects: &mut [PlineOverlappingIntersect<T>],
    pline1: &P,
    pline2: &R,
    pos_equal_eps: T
) -> Vec<OverlappingSlice<T>>
where P: PlineSource<Num = T> + ?Sized, R: PlineSource<Num = T> + ?Sized, T: Real,
Expand description

Sorts the overlapping intersects given according to pline2 direction and vertex indexes and returns all the overlapping intersects joined together into slices.

This function assumes the intersects given follow the convention that point1 is closest to the pline2’s segment start and point2 is furthest from the start of pline2’s segment start.