Skip to main content

nearest_on_triangle

Function nearest_on_triangle 

Source
pub fn nearest_on_triangle<S: Real>(
    p: [S; 3],
    a: [S; 3],
    b: [S; 3],
    c: [S; 3],
) -> [S; 3]
Expand description

The point of triangle abc nearest p. A triangle with no area answers the nearest point of its sides.