parry2d::query::details

Function clip_segment_segment_with_normal

Source
pub fn clip_segment_segment_with_normal(
    seg1: (Point<f32>, Point<f32>),
    seg2: (Point<f32>, Point<f32>),
    normal: Vector<f32>,
) -> Option<((Point<f32>, Point<f32>, usize, usize), (Point<f32>, Point<f32>, usize, usize))>
Expand description

Projects two segments on one another towards the direction normal, and compute their intersection.