public class GeoRect extends GeoShapeBase
EARTH_CIRCUMFERENCE, EARTH_RADIUS, MAX_LAT, MAX_LON, MIN_LAT, MIN_LON| Constructor and Description |
|---|
GeoRect(GeoPoint northWest,
GeoPoint southEast) |
GeoRect(GeoPoint northWest,
GeoPoint southEast,
String description) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
GeoPoint |
getNorthWest() |
GeoPoint |
getSouthEast() |
int |
hashCode() |
boolean |
intersects(GeoShape geoShape)
Calculate whether the given GeoShape intersects with the geometry of this object.
|
String |
toString() |
boolean |
within(GeoShape geoShape)
Calculate whether the given GeoShape is completely within the geometry of this object.
|
distanceBetween, getDescription, validatepublic boolean intersects(GeoShape geoShape)
GeoShapegeoShape - The other shapepublic boolean within(GeoShape geoShape)
GeoShapegeoShape - The other shapepublic GeoPoint getNorthWest()
public GeoPoint getSouthEast()
Copyright © 2014–2018. All rights reserved.