See Section 26.13.3 for squares of lengths in 2D geometry.
The distance2 command finds the square of the distance between two points.
or: