Function ncollide3d::query::closest_points_line_line_parameters [−][src]
pub fn closest_points_line_line_parameters<N: RealField>(
orig1: &Point<N>,
dir1: &Vector<N>,
orig2: &Point<N>,
dir2: &Vector<N>
) -> (N, N)
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
.