// Euclidean.java // Metric used for the Euclidean nearest-point VD // Actually returns the euclidean distance squared. public class Euclidean extends Metric { public double distance(Shape s, double x, double y) { return s.euclideanSq(x, y); // To save time, return squared distance } }