public interface MBR
Modifier and Type | Method and Description |
---|---|
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
|
<T> boolean |
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
|
int getDimensions()
double getMin(int axis)
axis
- the axis to usedouble getMax(int axis)
axis
- the axis to useMBR union(MBR mbr)
mbr
- the MBR to create a union withboolean 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