FarthestPair Methods |
The FarthestPair type exposes the following members.
Name | Description | |
---|---|---|
![]() | Distance |
Returns the Eucliden distance between the closest pair of points.
This quantity is also known as the Diameter of the set of points. |
![]() ![]() | MainTest |
Demo test the FarthestPair data type.
Reads in an integer N and N points (specified by
their X- and Y-coordinates) from standard input;
computes a farthest pair of points; and prints the pair to standard
output. |