Skip to main content

closest_points_line_line_parameters

Function closest_points_line_line_parameters 

Source
pub fn closest_points_line_line_parameters(
    orig1: &Point<f64>,
    dir1: &Vector<f64>,
    orig2: &Point<f64>,
    dir2: &Vector<f64>,
) -> (f64, f64)
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.