Class BBoxCalculator
- java.lang.Object
-
- org.locationtech.spatial4j.shape.impl.BBoxCalculator
-
public class BBoxCalculator extends Object
(INTERNAL) Calculates the minimum bounding box given a bunch of rectangles (ranges). It's a temporary object and not thread-safe; throw it away when done. For a cartesian space, the calculations are trivial but it is not for geodetic. For geodetic, it must maintain an ordered set of disjoint ranges as each range is provided.
-
-
Constructor Summary
Constructors Constructor Description BBoxCalculator(SpatialContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doesXWorldWrap()
void
expandRange(double minX, double maxX, double minY, double maxY)
void
expandRange(Rectangle rect)
void
expandXRange(double minX, double maxX)
Rectangle
getBoundary()
double
getMaxX()
double
getMaxY()
double
getMinX()
double
getMinY()
-
-
-
Constructor Detail
-
BBoxCalculator
public BBoxCalculator(SpatialContext ctx)
-
-
Method Detail
-
expandRange
public void expandRange(Rectangle rect)
-
expandRange
public void expandRange(double minX, double maxX, double minY, double maxY)
-
expandXRange
public void expandXRange(double minX, double maxX)
-
doesXWorldWrap
public boolean doesXWorldWrap()
-
getBoundary
public Rectangle getBoundary()
-
getMinX
public double getMinX()
-
getMaxX
public double getMaxX()
-
getMinY
public double getMinY()
-
getMaxY
public double getMaxY()
-
-