Package com.geodesk.geom
Class BoxBuilder
java.lang.Object
com.geodesk.geom.BoxBuilder
- All Implemented Interfaces:
Bounds
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
expandToInclude
(int x, int y) Checks if this bounding box includes the given coordinate, and expands it if necessary.void
Checks if this bounding box includes another bounding box, and expands it if necessary.boolean
isNull()
int
maxX()
int
maxY()
int
minX()
int
minY()
void
reset()
-
Constructor Details
-
BoxBuilder
public BoxBuilder()
-
-
Method Details
-
reset
public void reset() -
isNull
public boolean isNull() -
minX
public int minX() -
minY
public int minY() -
maxX
public int maxX() -
maxY
public int maxY() -
expandToInclude
public void expandToInclude(int x, int y) Checks if this bounding box includes the given coordinate, and expands it if necessary. If this bounding box straddles the Antimeridian, the results of this method are undefined (as it cannot tell in which direction the box should be expanded).- Parameters:
x
- X-coordinatey
- Y-coordinate
-
expandToInclude
Checks if this bounding box includes another bounding box, and expands it if necessary. If either bounding box straddles the Antimeridian, the results of this method are undefined (as it cannot tell in which direction the box should be expanded).- Parameters:
b
- the bounding box to include into this
-