public class SimpleMBR2D extends Object implements MBR2D
Please note that you should not normally use this class when PRTree wants a MBR since this will actually use a lot of extra memory.
| Constructor and Description |
|---|
SimpleMBR2D(double xmin,
double ymin,
double xmax,
double ymax)
Create a 2D minimum bounding box
|
| Modifier and Type | Method and Description |
|---|---|
double |
getMaxX()
Get the maximum x value
|
double |
getMaxY()
Get the maximum y value
|
double |
getMinX()
Get the minimum x value
|
double |
getMinY()
Get the minimum y value
|
boolean |
intersects(MBR2D other)
Check if the other MBR intersects this one
|
String |
toString()
Get a string representation of this mbr.
|
MBR2D |
union(MBR2D other)
Return a new MBR that is the union of this mbr and the other
|
public SimpleMBR2D(double xmin,
double ymin,
double xmax,
double ymax)
xmin - the xmin of the MBRymin - the ymin of the MBRxmax - the xmax of the MBRymax - the ymax of the MBRpublic String toString()
public double getMinX()
MBR2Dpublic double getMinY()
MBR2Dpublic double getMaxX()
MBR2Dpublic double getMaxY()
MBR2Dpublic MBR2D union(MBR2D other)
MBR2Dpublic boolean intersects(MBR2D other)
MBR2Dintersects in interface MBR2Dother - the MBR to check against