Function heron::rapier_plugin::rapier::parry::query::closest_points::closest_points_line_line_parameters_eps [−][src]
pub fn closest_points_line_line_parameters_eps<const D: usize>(
orig1: &Point<f32, D>,
dir1: &Matrix<f32, Const<D>, Const<1_usize>, ArrayStorage<f32, D, 1_usize>>,
orig2: &Point<f32, D>,
dir2: &Matrix<f32, Const<D>, Const<1_usize>, ArrayStorage<f32, D, 1_usize>>,
eps: f32
) -> (f32, f32, bool)
Closest points between two lines with a custom tolerance epsilon.
The result, say res
, is such that the closest points between both lines are
orig1 + dir1 * res.0
and orig2 + dir2 * res.1
. If the lines are parallel
then res.2
is set to true
and the returned closest points are orig1
and
its projection on the second line.