Click or drag to resize
FarthestPair Methods

The FarthestPair type exposes the following members.

Methods
  NameDescription
Public methodDistance
Returns the Eucliden distance between the closest pair of points. This quantity is also known as the Diameter of the set of points.
Public methodStatic memberMainTest
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.
Top
See Also