public class BoundingBox extends Object implements Serializable
| Constructor and Description |
|---|
BoundingBox(BoundingBox that)
Clone constructor
|
BoundingBox(double southLatitude,
double northLatitude,
double westLongitude,
double eastLongitude)
Create a bounding box with the specified latitudes and longitudes.
|
BoundingBox(WGS84Point southWestCorner,
WGS84Point northEastCorner)
create a bounding box defined by two coordinates
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(WGS84Point point) |
boolean |
equals(Object obj) |
void |
expandToInclude(BoundingBox other)
Expands this bounding box to include the provided bounding box.
|
WGS84Point |
getCenter() |
double |
getEastLongitude() |
double |
getLatitudeSize()
Returns the size of the bounding box in degrees of latitude.
|
double |
getLongitudeSize()
Returns the size of the bounding box in degrees of longitude.
|
WGS84Point |
getNorthEastCorner()
Returns the NorthEastCorner of this BoundingBox as a new Point.
|
double |
getNorthLatitude() |
WGS84Point |
getNorthWestCorner()
Returns the NorthWestCorner of this BoundingBox as a new Point.
|
WGS84Point |
getSouthEastCorner()
Returns the SouthEastCorner of this BoundingBox as a new Point.
|
double |
getSouthLatitude() |
WGS84Point |
getSouthWestCorner()
Returns the SouthWestCorner of this BoundingBox as a new Point.
|
double |
getWestLongitude() |
int |
hashCode() |
boolean |
intersects(BoundingBox other) |
boolean |
intersects180Meridian() |
String |
toString() |
public BoundingBox(WGS84Point southWestCorner, WGS84Point northEastCorner)
public BoundingBox(double southLatitude,
double northLatitude,
double westLongitude,
double eastLongitude)
northLatitude - southLatitude - westLongitude - eastLongitude - IllegalArgumentException - When the defined BoundingBox would go over one of the poles. This kind of box is not supported.public BoundingBox(BoundingBox that)
that - public WGS84Point getNorthWestCorner()
public WGS84Point getNorthEastCorner()
public WGS84Point getSouthEastCorner()
public WGS84Point getSouthWestCorner()
public double getLatitudeSize()
public double getLongitudeSize()
public boolean contains(WGS84Point point)
public boolean intersects(BoundingBox other)
public WGS84Point getCenter()
public void expandToInclude(BoundingBox other)
other - public double getEastLongitude()
public double getWestLongitude()
public double getNorthLatitude()
public double getSouthLatitude()
public boolean intersects180Meridian()
Copyright © 2019. All rights reserved.