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.
or: