|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MBR
A minimum bounding box for n dimensions.
| Method Summary | ||
|---|---|---|
int |
getDimensions()
|
|
double |
getMax(int axis)
Get the maximum value for the given axis |
|
double |
getMin(int axis)
Get the minimum value for the given axis |
|
boolean |
intersects(MBR other)
Check if the other MBR intersects this one |
|
|
intersects(T t,
MBRConverter<T> converter)
Check if this MBR intersects the rectangle given by the object and the MBRConverter. |
|
MBR |
union(MBR mbr)
Return a new MBR that is the union of this mbr and the other |
|
| Method Detail |
|---|
int getDimensions()
double getMin(int axis)
axis - the axis to use
double getMax(int axis)
axis - the axis to use
MBR union(MBR mbr)
mbr - the MBR to create a union with
boolean intersects(MBR other)
other - the MBR to check against
<T> boolean intersects(T t,
MBRConverter<T> converter)
T - the object typet - a rectangular objectconverter - the MBRConverter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||