public static final class Query.GeoRegion.Circle extends Query.GeoRegion
Query.GeoRegion.Circle, Query.GeoRegion.Rectangle
Constructor and Description |
---|
Circle(GeoPt center,
double radius)
Creates a new
Circle object from the given arguments. |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(GeoPt point)
Determines whether the given
GeoPt value lies within this geographic region. |
boolean |
equals(java.lang.Object o) |
GeoPt |
getCenter() |
double |
getRadius() |
int |
hashCode() |
java.lang.String |
toString() |
public Circle(GeoPt center, double radius)
Circle
object from the given arguments.center
- a GeoPt
representing the center of the circleradius
- the radius of the circle, expressed in meterspublic boolean contains(GeoPt point)
Query.GeoRegion
GeoPt
value lies within this geographic region. If the
point lies on the border of the region it is considered to be contained.contains
in class Query.GeoRegion
public GeoPt getCenter()
public double getRadius()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object