Function heron::rapier_plugin::rapier2d::parry::query::closest_points::closest_points_line_line_parameters
source · pub fn closest_points_line_line_parameters(
orig1: &OPoint<f32, Const<2>>,
dir1: &Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>,
orig2: &OPoint<f32, Const<2>>,
dir2: &Matrix<f32, Const<2>, Const<1>, ArrayStorage<f32, 2, 1>>
) -> (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
.