Function parry2d::query::closest_points::closest_points_line_line_parameters_eps[][src]

pub fn closest_points_line_line_parameters_eps<D: DimName>(
    orig1: &PointN<Real, D>,
    dir1: &VectorN<Real, D>,
    orig2: &PointN<Real, D>,
    dir2: &VectorN<Real, D>,
    eps: Real
) -> (Real, Real, bool) where
    DefaultAllocator: Allocator<Real, D>, 

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.