Skip to main content

nearest_triangle2_point2

Function nearest_triangle2_point2 

Source
pub fn nearest_triangle2_point2<S: OrderedField>(
    _triangle: Triangle2<S>,
    _point: Point2<S>,
) -> Triangle2Point<S>
Expand description

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