Previous Up Next

14.12.7  The length of a segment in space: distance

See Section 13.14.2 for distances in two-dimensional geometry.

The distance command finds the distance between two points.


Example.
Input:

distance(point(-1,1,1),point(1,1,1))

or:

distance([-1,1,1],[1,1,1])

Output:

2

Previous Up Next