Function cavalier_contours::polyline::internal::pline_intersects::sort_and_join_overlapping_intersects
source · 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>>
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.