Interface BoxDistance

    • Method Detail

      • dist

        double dist​(double[] point,
                    double[] min,
                    double[] max)
        Parameters:
        point - A point
        min - Minimum corner of axis aligned box
        max - Maximum corner of axis aligned box
        Returns:
        Distance between point and box
      • dist

        default double dist​(double[] center,
                            Index.BoxEntry<?> entry)
        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.

        Parameters:
        center - a point
        entry - a box
        Returns:
        distance between point and box
      • centerDistance

        static double centerDistance​(double[] center,
                                     double[] min,
                                     double[] max)
      • edgeDistance

        static double edgeDistance​(double[] center,
                                   double[] min,
                                   double[] max)