Class RectangleDistanceFunction.FarthestNeighbor

    • Method Detail

      • dist

        public double dist​(double[] center,
                           double[] min,
                           double[] max)
        Specified by:
        dist in interface RectangleDistanceFunction
        Parameters:
        center - A point
        min - Minimum corner of axis aligned box
        max - Maximum corner of axis aligned box
        Returns:
        Distance between point and box
      • dist

        public double dist​(double[] center,
                           RectangleEntry<?> entry)
        Description copied from interface: RectangleDistanceFunction
        Some algorithm use this method on the entries containing user supplied values. This can be overridden if the min/max coordinates only represent the bounding-box of the object. If your entry is actually a sphere, a car, an human or a cat, you may need this.
        Specified by:
        dist in interface RectangleDistanceFunction
        Parameters:
        center - a point
        entry - a rectangle
        Returns:
        distance between point and rectangle