Squared distance between two points (faster, avoids sqrt).
The squared Euclidean distance between p1 and p2.
The first point.
The second point.