Class GeoBoundingBox
java.lang.Object
org.episteme.social.geography.GeoBoundingBox
- All Implemented Interfaces:
Serializable, BoundingBox<EarthCoordinate>
Geographic bounding box implementation.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(EarthCoordinate point) Checks if a point is within this bounding box.getMax()Returns the maximum corner of the bounding box.getMin()Returns the minimum corner of the bounding box.include(EarthCoordinate point) Expands this bounding box to include a point.booleanintersects(BoundingBox<EarthCoordinate> other) Checks if this box intersects with another.merge(BoundingBox<EarthCoordinate> other) Merges this bounding box with another.
-
Constructor Details
-
GeoBoundingBox
-
-
Method Details
-
getMin
Description copied from interface:BoundingBoxReturns the minimum corner of the bounding box.- Specified by:
getMinin interfaceBoundingBox<EarthCoordinate>- Returns:
- the min point
-
getMax
Description copied from interface:BoundingBoxReturns the maximum corner of the bounding box.- Specified by:
getMaxin interfaceBoundingBox<EarthCoordinate>- Returns:
- the max point
-
contains
Description copied from interface:BoundingBoxChecks if a point is within this bounding box.- Specified by:
containsin interfaceBoundingBox<EarthCoordinate>- Parameters:
point- the point to check- Returns:
- true if contained
-
intersects
Description copied from interface:BoundingBoxChecks if this box intersects with another.- Specified by:
intersectsin interfaceBoundingBox<EarthCoordinate>- Parameters:
other- the other bounding box- Returns:
- true if boxes overlap
-
include
Description copied from interface:BoundingBoxExpands this bounding box to include a point.- Specified by:
includein interfaceBoundingBox<EarthCoordinate>- Parameters:
point- the point to include- Returns:
- expanded bounding box
-
merge
Description copied from interface:BoundingBoxMerges this bounding box with another.- Specified by:
mergein interfaceBoundingBox<EarthCoordinate>- Parameters:
other- the other box- Returns:
- merged bounding box
-