Package org.tinspin.index.rtree
Class Entry<T>
- java.lang.Object
-
- org.tinspin.index.Index.BoxEntry<T>
-
- org.tinspin.index.rtree.Entry<T>
-
public class Entry<T> extends Index.BoxEntry<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecalcArea()static voidcalcBoundingBox(Entry<?>[] entries, int start, int end, double[] minOut, double[] maxOut)static doublecalcCenterDistance(Entry<?> e1, Entry<?> e2)static doublecalcDeadspace(Entry<?>[] entries, int start, int end, double[] minOut, double[] maxOut)Calculates the bounding boxes and the estimated dead space.static booleancalcIncludes(double[] minOut, double[] maxOut, double[] minIn, double[] maxIn)static doublecalcMargin(double[] min2, double[] max2)static doublecalcOverlap(double[] min1, double[] max1, double[] min2, double[] max2)static doublecalcVolume(double[] min, double[] max)static doublecalcVolume(Entry<?> e)booleancheckExactMatch(double[] min2, double[] max2)booleancheckInclusion(double[] min2, double[] max2)Check whether the current entry geometrically includes the rectangle defined by min2 and max2.static booleancheckOverlap(double[] min, double[] max, Entry<?> e)protected voidset(Entry<T> e)voidsetToCover(Entry<T> e1, Entry<T> e2)StringtoString()
-
-
-
Constructor Detail
-
Entry
public Entry(double[] min, double[] max, T val)
-
-
Method Detail
-
checkInclusion
public boolean checkInclusion(double[] min2, double[] max2)Check whether the current entry geometrically includes the rectangle defined by min2 and max2.- Parameters:
min2- Rectangle minmax2- Rectangle max- Returns:
- Whether min2/max2 is included in the current entry.
-
checkExactMatch
public boolean checkExactMatch(double[] min2, double[] max2)
-
calcArea
public double calcArea()
-
calcVolume
public static double calcVolume(Entry<?> e)
-
calcVolume
public static double calcVolume(double[] min, double[] max)
-
calcBoundingBox
public static void calcBoundingBox(Entry<?>[] entries, int start, int end, double[] minOut, double[] maxOut)
-
calcOverlap
public static double calcOverlap(double[] min1, double[] max1, double[] min2, double[] max2)
-
checkOverlap
public static boolean checkOverlap(double[] min, double[] max, Entry<?> e)
-
calcIncludes
public static boolean calcIncludes(double[] minOut, double[] maxOut, double[] minIn, double[] maxIn)
-
calcDeadspace
public static double calcDeadspace(Entry<?>[] entries, int start, int end, double[] minOut, double[] maxOut)
Calculates the bounding boxes and the estimated dead space.- Parameters:
entries- Entriesstart- startend- endminOut- min returnmaxOut- max return- Returns:
- estimated dead space
-
calcMargin
public static double calcMargin(double[] min2, double[] max2)
-
-