Package org.dizitart.no2.index
Class BoundingBox
java.lang.Object
org.dizitart.no2.index.BoundingBox
- All Implemented Interfaces:
Serializable
Represents a bounding box for spatial indexing.
- Author:
- Anindya Chatterjee
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBoundingBox(float minX, float maxX, float minY, float maxY) Creates a newBoundingBoxinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatgetMaxX()Returns the maximum x-coordinate of the bounding box.floatgetMaxY()Returns the maximum Y coordinate of the bounding box.floatgetMinX()Returns the minimum x-coordinate of the bounding box.floatgetMinY()Returns the minimum y-coordinate of the bounding box.inthashCode()voidsetMaxX(float maxX) Returns the maximum x-coordinate of the bounding box.voidsetMaxY(float maxY) Returns the maximum Y coordinate of the bounding box.voidsetMinX(float minX) Returns the minimum x-coordinate of the bounding box.voidsetMinY(float minY) Returns the minimum y-coordinate of the bounding box.toString()
-
Field Details
-
EMPTY
An empty bounding box.
-
-
Constructor Details
-
BoundingBox
public BoundingBox() -
BoundingBox
public BoundingBox(float minX, float maxX, float minY, float maxY) Creates a newBoundingBoxinstance.- Parameters:
minX- Returns the minimum x-coordinate of the bounding box.maxX- Returns the maximum x-coordinate of the bounding box.minY- Returns the minimum y-coordinate of the bounding box.maxY- Returns the maximum Y coordinate of the bounding box.
-
-
Method Details
-
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. -
equals
-
hashCode
public int hashCode() -
toString
-