distanceLineLine

distanceLineLine()
distanceLineLine(line1Begin: Point3, line1End: Point3, line2Begin: Point3, line2End: Point3, out_closestPointLine1: Point3, out_closestPointLine2: Point3): number

Returns the distance between two line segments.

Parameters

line1Begin: Point3

The start of the first line segment.

line1End: Point3

The end of the first line segment.

line2Begin: Point3

The start of the second line segment.

line2End: Point3

The end of the second line segment.

out_closestPointLine1: Point3

Out parameter for the closest point of line1 to line2.

out_closestPointLine2: Point3

Out parameter for the closest point of line2 to line1.

Returns: number

The distance between the two input line segments.