Package org.khelekore.prtree
Class MinDist2D
- java.lang.Object
-
- org.khelekore.prtree.MinDist2D
-
public class MinDist2D extends Object
Class that can calculate the MINDIST between a point and a rectangle
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
get(double minx, double miny, double maxx, double maxy, double x, double y)
Calculate the MINDIST between the given rectangle and the given point
-
-
-
Method Detail
-
get
public static double get(double minx, double miny, double maxx, double maxy, double x, double y)
Calculate the MINDIST between the given rectangle and the given point- Parameters:
minx
- the rectangle minimum x pointminy
- the rectangle minimum y pointmaxx
- the rectangle maximum x pointmaxy
- the rectangle maximum y pointx
- the pointy
- the point- Returns:
- the squared distance
-
-