| 构造器和说明 |
|---|
SimpleMBR2D(double xmin,
double ymin,
double xmax,
double ymax)
Create a 2D minimum bounding box
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 double getMinX()
MBR2Dpublic double getMinY()
MBR2Dpublic double getMaxX()
MBR2Dpublic double getMaxY()
MBR2Dpublic MBR2D union(MBR2D other)
MBR2Dpublic boolean intersects(MBR2D other)
MBR2Dintersects 在接口中 MBR2Dother - the MBR to check againstCopyright © 2017. All rights reserved.