public interface GeoBoundingBox
Modifier and Type | Method and Description |
---|---|
GeoPoint |
getBottomRight() |
GeoPoint |
getTopLeft() |
static GeoBoundingBox |
of(double topLeftLatitude,
double topLeftLongitude,
double bottomRightLatitude,
double bottomRightLongitude)
Create a
GeoBoundingBox from the latitude and longitude of the top-left and bottom-right corners. |
static GeoBoundingBox |
of(GeoPoint topLeft,
GeoPoint bottomRight)
Create a
GeoBoundingBox from the top-left and bottom-right corners. |
GeoPoint getTopLeft()
GeoPoint getBottomRight()
static GeoBoundingBox of(GeoPoint topLeft, GeoPoint bottomRight)
GeoBoundingBox
from the top-left and bottom-right corners.topLeft
- The coordinates of the top-left corner of the bounding box.bottomRight
- The coordinates of the bottom-right corner of the bounding box.GeoBoundingBox
.static GeoBoundingBox of(double topLeftLatitude, double topLeftLongitude, double bottomRightLatitude, double bottomRightLongitude)
GeoBoundingBox
from the latitude and longitude of the top-left and bottom-right corners.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.GeoBoundingBox
.Copyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.