Package uk.ac.rdg.resc.edal.geometry
Interface BoundingBox
-
- All Superinterfaces:
Domain<HorizontalPosition>
,Polygon
,Serializable
- All Known Implementing Classes:
BoundingBoxImpl
public interface BoundingBox extends Polygon
A rectangular bounding box in the horizontal plane.- Author:
- Jon Blower
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(Object obj)
double
getHeight()
Gets the height of the bounding box, i.e.HorizontalPosition
getLowerCorner()
Gets the position (getMinX(), getMinY())double
getMaxX()
Gets the maximum ordinate along the first axis, equivalent togetMaximum(0)
.double
getMaxY()
Gets the maximum ordinate along the second axis, equivalent togetMaximum(1)
.double
getMinX()
Gets the minimum ordinate along the first axis, equivalent togetMinimum(0)
.double
getMinY()
Gets the minimum ordinate along the second axis, equivalent togetMinimum(1)
.HorizontalPosition
getUpperCorner()
Gets the position (getMaxX(), getMaxY())double
getWidth()
Gets the width of the bounding box, i.e.int
hashCode()
-
Methods inherited from interface uk.ac.rdg.resc.edal.geometry.Polygon
getBoundingBox, getCoordinateReferenceSystem, getVertices
-
-
-
-
Method Detail
-
getMinX
double getMinX()
Gets the minimum ordinate along the first axis, equivalent togetMinimum(0)
.
-
getMaxX
double getMaxX()
Gets the maximum ordinate along the first axis, equivalent togetMaximum(0)
.
-
getMinY
double getMinY()
Gets the minimum ordinate along the second axis, equivalent togetMinimum(1)
.
-
getMaxY
double getMaxY()
Gets the maximum ordinate along the second axis, equivalent togetMaximum(1)
.
-
getWidth
double getWidth()
Gets the width of the bounding box, i.e.getMaxX() - getMinX()
.
-
getHeight
double getHeight()
Gets the height of the bounding box, i.e.getMaxY() - getMinY()
.
-
getLowerCorner
HorizontalPosition getLowerCorner()
Gets the position (getMinX(), getMinY())
-
getUpperCorner
HorizontalPosition getUpperCorner()
Gets the position (getMaxX(), getMaxY())
-
-