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 booleanequals(Object obj)doublegetHeight()Gets the height of the bounding box, i.e.HorizontalPositiongetLowerCorner()Gets the position (getMinX(), getMinY())doublegetMaxX()Gets the maximum ordinate along the first axis, equivalent togetMaximum(0).doublegetMaxY()Gets the maximum ordinate along the second axis, equivalent togetMaximum(1).doublegetMinX()Gets the minimum ordinate along the first axis, equivalent togetMinimum(0).doublegetMinY()Gets the minimum ordinate along the second axis, equivalent togetMinimum(1).HorizontalPositiongetUpperCorner()Gets the position (getMaxX(), getMaxY())doublegetWidth()Gets the width of the bounding box, i.e.inthashCode()-
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())
-
-