Skip to main content

segment_segment_2d

Function segment_segment_2d 

Source
pub fn segment_segment_2d(
    a: [f64; 2],
    b: [f64; 2],
    c: [f64; 2],
    d: [f64; 2],
) -> Intersection2D
Expand description

Intersection of segments a-b and c-d, including touching ends and collinear overlap.