Skip to main content

nearest_triangle3_point3

Function nearest_triangle3_point3 

Source
pub fn nearest_triangle3_point3<S>(
    triangle: Triangle<S>,
    point: Point3<S>,
) -> ([Normalized<S>; 2], Point3<S>)
where S: OrderedField,
Expand description

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