Skip to main content

clip_segment_segment

Function clip_segment_segment 

Source
pub fn clip_segment_segment(
    seg1: (Point<f64>, Point<f64>),
    seg2: (Point<f64>, Point<f64>),
) -> Option<((Point<f64>, Point<f64>, usize, usize), (Point<f64>, Point<f64>, usize, usize))>
Expand description

Projects two segments on one another and compute their intersection.