The interface defines two methods:

  double distance(Vector v1, Vector v2);
  double distance(double centroidLengthSquare, Vector centroid, Vector v);


With the latter being an optimized form of the former, and satisfies:

 distance(v1, v2) == distance(v1.getLengthSquared(), v1, v2)

Is this correct?  Every place I see this method called, it is used in this
fashion, at least...

  -jake

Reply via email to