math.closest.triangle.point

Syntax

v = math.closest.triangle.point(v1,v2,v3,v4)

Get the closest point on the triangle to the point. The first three arguments define the triangle and the last argument defines the point.

Returns:

v - closest point

Arguments:

v1 - first vertex of the triangle

v2 - second vertex of the triangle

v3 - third vertex of the triangle

v4 - point for closest point calculation