Package org.dizitart.no2.index
Class BoundingBox
- java.lang.Object
-
- org.dizitart.no2.index.BoundingBox
-
- All Implemented Interfaces:
Serializable
public class BoundingBox extends Object implements Serializable
Represents a bounding box for spatial indexing.- Author:
- Anindya Chatterjee
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BoundingBox
EMPTY
An empty bounding box.
-
Constructor Summary
Constructors Constructor Description BoundingBox()
BoundingBox(float minX, float maxX, float minY, float maxY)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
float
getMaxX()
Returns the maximum x-coordinate of the bounding box.float
getMaxY()
Returns the maximum Y coordinate of the bounding box.float
getMinX()
Returns the minimum x-coordinate of the bounding box.float
getMinY()
Returns the minimum y-coordinate of the bounding box.int
hashCode()
void
setMaxX(float maxX)
Returns the maximum x-coordinate of the bounding box.void
setMaxY(float maxY)
Returns the maximum Y coordinate of the bounding box.void
setMinX(float minX)
Returns the minimum x-coordinate of the bounding box.void
setMinY(float minY)
Returns the minimum y-coordinate of the bounding box.String
toString()
-
-
-
Field Detail
-
EMPTY
public static final BoundingBox EMPTY
An empty bounding box.
-
-
Method Detail
-
getMinX
public float getMinX()
Returns the minimum x-coordinate of the bounding box.- Returns:
- the minimum x-coordinate of the bounding box.
-
getMaxX
public float getMaxX()
Returns the maximum x-coordinate of the bounding box.- Returns:
- the maximum x-coordinate of the bounding box
-
getMinY
public float getMinY()
Returns the minimum y-coordinate of the bounding box.- Returns:
- the minimum y-coordinate of the bounding box
-
getMaxY
public float getMaxY()
Returns the maximum Y coordinate of the bounding box.- Returns:
- the maximum Y coordinate of the bounding box.
-
setMinX
public void setMinX(float minX)
Returns the minimum x-coordinate of the bounding box.
-
setMaxX
public void setMaxX(float maxX)
Returns the maximum x-coordinate of the bounding box.
-
setMinY
public void setMinY(float minY)
Returns the minimum y-coordinate of the bounding box.
-
setMaxY
public void setMaxY(float maxY)
Returns the maximum Y coordinate of the bounding box.
-
-