Interface GeoBoundingBox
-
public interface GeoBoundingBoxA bounding box in the geocentric coordinate system.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description GeoPointbottomRight()default GeoPointgetBottomRight()Deprecated.UsebottomRight()instead.default GeoPointgetTopLeft()Deprecated.UsetopLeft()instead.static GeoBoundingBoxof(double topLeftLatitude, double topLeftLongitude, double bottomRightLatitude, double bottomRightLongitude)Create aGeoBoundingBoxfrom the latitude and longitude of the top-left and bottom-right corners.static GeoBoundingBoxof(GeoPoint topLeft, GeoPoint bottomRight)Create aGeoBoundingBoxfrom the top-left and bottom-right corners.GeoPointtopLeft()
-
-
-
Method Detail
-
topLeft
GeoPoint topLeft()
- Returns:
- The top-left coordinates of this bounding-box.
-
getTopLeft
@Deprecated default GeoPoint getTopLeft()
Deprecated.UsetopLeft()instead.- Returns:
- The top-left coordinates of this bounding-box.
-
bottomRight
GeoPoint bottomRight()
- Returns:
- The bottom-right coordinates of this bounding-box.
-
getBottomRight
@Deprecated default GeoPoint getBottomRight()
Deprecated.UsebottomRight()instead.- Returns:
- The bottom-right coordinates of this bounding-box.
-
of
static GeoBoundingBox of(GeoPoint topLeft, GeoPoint bottomRight)
Create aGeoBoundingBoxfrom the top-left and bottom-right corners.- Parameters:
topLeft- The coordinates of the top-left corner of the bounding box.bottomRight- The coordinates of the bottom-right corner of the bounding box.- Returns:
- The corresponding
GeoBoundingBox.
-
of
static GeoBoundingBox of(double topLeftLatitude, double topLeftLongitude, double bottomRightLatitude, double bottomRightLongitude)
Create aGeoBoundingBoxfrom the latitude and longitude of the top-left and bottom-right corners.- Parameters:
topLeftLatitude- The latitude of the top-left corner of the bounding box.topLeftLongitude- The longitude of the top-left corner of the bounding box.bottomRightLatitude- The latitude of the bottom-right corner of the bounding box.bottomRightLongitude- The longitude of the bottom-right corner of the bounding box.- Returns:
- The corresponding
GeoBoundingBox.
-
-