Skip to main content

nearest_triangle3_segment3

Function nearest_triangle3_segment3 

Source
pub fn nearest_triangle3_segment3<S>(
    triangle: Triangle3<S>,
    segment: Segment3<S>,
) -> (Triangle3Point<S>, Segment3Point<S>)
where S: Real + RelativeEq<Epsilon = S>,
Expand description

Returns the nearest 3D point on 3D triangle together with barycentric coordinates in relation to the triangle edges $ab$ and $ac$, and the nearest point in the 3D segment