math.dist.segment.point

Syntax

f := math.dist.segment.point(v1,v2,v3)

Get the distance between the line segment and the point.

Returns:

f - distance

Arguments:

v1 - first point of the line segment

v2 - second point of the line segment

v3 - point for distance calculation