Function heron::rapier_plugin::rapier3d::parry::query::closest_points::closest_points_line_line_parameters [−][src]
pub fn closest_points_line_line_parameters(
orig1: &OPoint<f32, Const<3_usize>>,
dir1: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 3_usize, 1_usize>>,
orig2: &OPoint<f32, Const<3_usize>>,
dir2: &Matrix<f32, Const<{_: usize}>, Const<1_usize>, ArrayStorage<f32, 3_usize, 1_usize>>
) -> (f32, f32)
Expand description
Closest points between two lines.
The result, say res
, is such that the closest points between both lines are
orig1 + dir1 * res.0
and orig2 + dir2 * res.1
.