Skip to main content

nearest_triangle3_segment3

Function nearest_triangle3_segment3 

Source
pub fn nearest_triangle3_segment3<S>(
    triangle: Triangle<S>,
    segment: Segment<S>,
) -> (([Normalized<S>; 2], Point3<S>), (Normalized<S>, Point3<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