Skip to main content

nearest_triangle3_point3

Function nearest_triangle3_point3 

Source
pub fn nearest_triangle3_point3<S>(
    triangle: Triangle3<S>,
    point: Point3<S>,
) -> Triangle3Point<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$