Previous Up Next

25.10.8  Squared length of a segment in space

See Section 24.13.3 for squares of lengths in two-dimensional geometry.

The distance2 command finds the square of the distance between two points.

Example

distance2(point(-1,1,1),point(1,1,1))

or:

distance2([-1,1,1],[1,1,1])
     
4           

Previous Up Next