Represent the points in cartesian coordinates, and use square of distance (as it is cheaper to compute).
vonbrand
- 14.1k
- 3
- 41
- 52