// Interface for objects with distance functions // David Eppstein, UC Irvine, 18 May 1997 import java.lang.*; public class DistancedObject { public DistancedObject neighbor; // variables for FastPair public double distanceToNeighbor = Double.POSITIVE_INFINITY; public double distanceTo(DistancedObject x) { return Double.POSITIVE_INFINITY; } }