13.14.3 The length squared of a segment in the plane: distance2
See Section 14.12.8 for squares of lengths in three-dimensional
geometry.
The distance2 command finds the square of the distance
between two points.
-
distance2 takes two arguments:
P,Q, two points.
- distance2(P,Q) returns the square of the distance
between P and Q.
Example.
Input:
distance2(-1, 1+i)
Output: