Skip to main content

segments_intersect

Function segments_intersect 

Source
pub fn segments_intersect(
    p1: &Point2D,
    p2: &Point2D,
    p3: &Point2D,
    p4: &Point2D,
) -> bool
Expand description

Test if two line segments (p1,p2) and (p3,p4) intersect. Uses orientation-based predicates.