math.dist.segment.segment

Syntax

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

Get the distance between two line segments. The first two arguments define one segment and the second two arguments define the other segment.

Returns:

f - distance

Arguments:

v1 - first point of the first line segment

v2 - second point of the first line segment

v3 - first point of the second line segment

v4 - second point of the second line segment