org.khelekore.prtree
Class MinDist

java.lang.Object
  extended by org.khelekore.prtree.MinDist

public class MinDist
extends Object

Class that can calculate the MINDIST between a point and a rectangle


Method Summary
static double get(MBR mbr, PointND p)
          Calculate the MINDIST between the given MBRND and the given point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static double get(MBR mbr,
                         PointND p)
Calculate the MINDIST between the given MBRND and the given point

Parameters:
mbr - the bounding box to use
p - the point
Returns:
the squared distance