public final class Circle extends LatLonGeometry
NOTES:
spatial-extras module
| Modifier and Type | Field and Description |
|---|---|
static double |
MAX_RADIUS
Max radius allowed, half of the earth mean radius.
|
| Constructor and Description |
|---|
Circle(double lat,
double lon,
double radiusMeters)
Creates a new circle from the supplied latitude/longitude center and a radius in meters..
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
double |
getLat()
Returns the center's latitude
|
double |
getLon()
Returns the center's longitude
|
double |
getRadius()
Returns the radius in meters
|
int |
hashCode() |
protected Component2D |
toComponent2D()
get a
Component2D from this geometry |
String |
toString() |
createpublic static double MAX_RADIUS
public Circle(double lat,
double lon,
double radiusMeters)
public double getLat()
public double getLon()
public double getRadius()
protected Component2D toComponent2D()
LatLonGeometryComponent2D from this geometrytoComponent2D in class LatLonGeometryCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.