Function heron::rapier_plugin::rapier2d::parry::query::details::clip_segment_segment_with_normal [−][src]
pub fn clip_segment_segment_with_normal(
seg1: (OPoint<f32, Const<2_usize>>, OPoint<f32, Const<2_usize>>),
seg2: (OPoint<f32, Const<2_usize>>, OPoint<f32, Const<2_usize>>),
normal: Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 2_usize, 1_usize>>
) -> Option<((OPoint<f32, Const<2_usize>>, OPoint<f32, Const<2_usize>>, usize, usize), (OPoint<f32, Const<2_usize>>, OPoint<f32, Const<2_usize>>, usize, usize))>
Expand description
Projects two segments on one another towards the direction normal
,
and compute their intersection.