pub fn visit_global_self_intersects<P, T, C, V>(
    polyline: &P,
    aabb_index: &StaticAABB2DIndex<T>,
    visitor: &mut V,
    pos_equal_eps: T
) -> C
where P: PlineSource<Num = T> + ?Sized, T: Real, C: ControlFlow, V: PlineIntersectVisitor<T, C>,
Expand description

Visits all global self intersects of the polyline. Global self intersects are defined as between two polyline segments that do not share a vertex.

In the case of two intersects on one segment the intersects will be added as two PlineBasicIntersect in the order of distance from the start of the second segment.

In the case of an intersect at the very start of a polyline segment the vertex index of the start of that segment is recorded (unless the polyline is open and the intersect is at the very end of the polyline, then the second to last vertex index is used to maintain that it represents the start of a polyline segment).