public class Entry<T> extends Object implements RectangleEntry<T>, Comparable<Entry<T>>
| Modifier and Type | Field and Description |
|---|---|
protected double[] |
max |
protected double[] |
min |
| Constructor and Description |
|---|
Entry(double[] min,
double[] max,
T val) |
| Modifier and Type | Method and Description |
|---|---|
double |
calcArea() |
static void |
calcBoundingBox(Entry<?>[] entries,
int start,
int end,
double[] minOut,
double[] maxOut) |
static double |
calcCenterDistance(Entry<?> e1,
Entry<?> e2) |
static double |
calcDeadspace(Entry<?>[] entries,
int start,
int end,
double[] minOut,
double[] maxOut)
Calculates the bounding boxes and the estimated dead space.
|
static boolean |
calcIncludes(double[] minOut,
double[] maxOut,
double[] minIn,
double[] maxIn) |
static double |
calcMargin(double[] min2,
double[] max2) |
static double |
calcOverlap(double[] min1,
double[] max1,
double[] min2,
double[] max2) |
static double |
calcVolume(double[] min,
double[] max) |
static double |
calcVolume(Entry<?> e) |
boolean |
checkExactMatch(double[] min2,
double[] max2) |
boolean |
checkInclusion(double[] min2,
double[] max2)
Check whether the current entry geometrically includes the
rectangle defined by min2 and max2.
|
static boolean |
checkOverlap(double[] min,
double[] max,
Entry<?> e) |
int |
compareTo(Entry<T> o) |
double[] |
lower() |
void |
set(double[] lower,
double[] upper,
T val) |
protected void |
set(Entry<T> e) |
void |
setToCover(Entry<T> e1,
Entry<T> e2) |
String |
toString() |
double[] |
upper() |
T |
value() |
public Entry(double[] min,
double[] max,
T val)
public double[] lower()
lower in interface RectangleEntry<T>public double[] upper()
upper in interface RectangleEntry<T>public T value()
value in interface RectangleEntry<T>public int compareTo(Entry<T> o)
compareTo in interface Comparable<Entry<T>>public boolean checkInclusion(double[] min2,
double[] max2)
min2 - max2 - public boolean checkExactMatch(double[] min2,
double[] max2)
public double calcArea()
public static double calcVolume(Entry<?> e)
public static double calcVolume(double[] min,
double[] max)
public static void calcBoundingBox(Entry<?>[] entries, int start, int end, double[] minOut, double[] maxOut)
public static double calcOverlap(double[] min1,
double[] max1,
double[] min2,
double[] max2)
public static boolean checkOverlap(double[] min,
double[] max,
Entry<?> e)
public static boolean calcIncludes(double[] minOut,
double[] maxOut,
double[] minIn,
double[] maxIn)
public static double calcDeadspace(Entry<?>[] entries, int start, int end, double[] minOut, double[] maxOut)
entries - start - end - minOut - maxOut - public static double calcMargin(double[] min2,
double[] max2)
public void set(double[] lower,
double[] upper,
T val)
Copyright © 2017. All rights reserved.