dist()

Synopsis

Returns the distance between two points .

Syntax

dist ( p1 As Point, _
       p2 As Point ) As Number 
Argument Type Description
p1 Point First point to get the distance.
p2 Point Second point to get the distance.

Example 1

Intent >dist(point(0, 0, 0), point(1, 0, 0)) 
--> 1.0 

Example 2

Intent >dist(point(0, 0, 0), point(1, 1, 1)) 
--> 1.732