Previous Up Next

26.13.3  Squared length of a segment in the plane

See Section 27.10.8 for squares of lengths in 3D geometry.

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

Example

distance2(-1, 1+i)
     
5           

Previous Up Next