Previous Up Next

24.13.3  Squared length of a segment in the plane

See Section 25.10.8 for squares of lengths in three-dimensional geometry.

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

Example

distance2(-1, 1+i)
     
5           

Previous Up Next