Package org.khelekore.prtree
Interface MBR2D
-
- All Known Implementing Classes:
SimpleMBR2D
public interface MBR2DA minimum bounding rectangle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetMaxX()Get the maximum x valuedoublegetMaxY()Get the maximum y valuedoublegetMinX()Get the minimum x valuedoublegetMinY()Get the minimum y valuebooleanintersects(MBR2D other)Check if the other MBR intersects this oneMBR2Dunion(MBR2D mbr)Return a new MBR that is the union of this mbr and the other
-
-
-
Method Detail
-
getMinX
double getMinX()
Get the minimum x value- Returns:
- the x min value
-
getMinY
double getMinY()
Get the minimum y value- Returns:
- the y min value
-
getMaxX
double getMaxX()
Get the maximum x value- Returns:
- the x max value
-
getMaxY
double getMaxY()
Get the maximum y value- Returns:
- the y max value
-
union
MBR2D union(MBR2D mbr)
Return a new MBR that is the union of this mbr and the other- Parameters:
mbr- the MBR to create a union with- Returns:
- the new MBR
-
intersects
boolean intersects(MBR2D other)
Check if the other MBR intersects this one- Parameters:
other- the MBR to check against- Returns:
- true if the given MBR intersects with this MBR
-
-