public class GeoCircle extends GeoShapeBase
EARTH_CIRCUMFERENCE, EARTH_RADIUS, MAX_LAT, MAX_LON, MIN_LAT, MIN_LON| Constructor and Description |
|---|
GeoCircle(double latitude,
double longitude,
double radius) |
GeoCircle(double latitude,
double longitude,
double radius,
String description) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
GeoRect |
getBoundingBox() |
double |
getLatitude() |
double |
getLongitude() |
double |
getRadius() |
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 GeoCircle(double latitude,
double longitude,
double radius)
latitude - latitude is specified in decimal degreeslongitude - longitude is specified in decimal degreesradius - radius is specified in kilometerspublic GeoCircle(double latitude,
double longitude,
double radius,
String description)
latitude - latitude is specified in decimal degreeslongitude - longitude is specified in decimal degreesradius - radius is specified in kilometersdescription - name or description of this shapepublic double getLatitude()
public double getLongitude()
public double getRadius()
public boolean intersects(GeoShape geoShape)
GeoShapegeoShape - The other shapepublic boolean within(GeoShape geoShape)
GeoShapegeoShape - The other shapepublic GeoRect getBoundingBox()
Copyright © 2014–2018. All rights reserved.