Function: dist

Syntax

dist (<point1> ,<point2> ... )

Type

numeric

Returns

The distance between 3-D points.

Parameters

Notes

If more than two points are supplied, either in the form of point arrays or point scalars, the result will be the summed length of all polyline segments.

Example

Print the distance between two points defined interactively.

point p1 = pcur,p2 = pcur
tell <'Distance:',dist(p1,p2)>