public class GeoBounds extends Object
GeoBounds class provides access the the North East and South West corners of the bounds and provides
an intersects method.| Constructor and Description |
|---|
GeoBounds(double minLat,
double minLng,
double maxLat,
double maxLng)
Constructor.
|
GeoBounds(Set<GeoPosition> geoPositions)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
GeoPosition |
getNorthWest()
Gets the north west position.
|
GeoPosition |
getSouthEast()
Gets the south east position.
|
boolean |
intersects(GeoBounds other)
Determines if this bounds intersects the other bounds.
|
public GeoBounds(double minLat,
double minLng,
double maxLat,
double maxLng)
minLat - The minimum latitude.minLng - The minimum longitude.maxLat - The maximum latitude.maxLng - The maximum longitude.public GeoBounds(Set<GeoPosition> geoPositions)
geoPositions - A non null list of 2 or more different GeoBounds objects.public boolean intersects(GeoBounds other)
other - The other bounds to test for intersection with.public GeoPosition getNorthWest()
public GeoPosition getSouthEast()
Copyright © 2014. All Rights Reserved.