Package org.elasticsearch.geometry
Class Circle
java.lang.Object
org.elasticsearch.geometry.Circle
- All Implemented Interfaces:
Geometry
public class Circle extends java.lang.Object implements Geometry
Circle geometry (not part of WKT standard, but used in elasticsearch) defined by lat/lon coordinates of the center in degrees
and optional altitude in meters.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)doublegetAlt()doublegetLat()doublegetLon()doublegetRadiusMeters()doublegetX()doublegetY()doublegetZ()inthashCode()booleanhasZ()booleanisEmpty()java.lang.StringtoString()ShapeTypetype()<T, E extends java.lang.Exception>
Tvisit(GeometryVisitor<T,E> visitor)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Circle
public Circle(double x, double y, double radiusMeters) -
Circle
public Circle(double x, double y, double z, double radiusMeters)
-
-
Method Details
-
type
-
getY
public double getY() -
getX
public double getX() -
getRadiusMeters
public double getRadiusMeters() -
getZ
public double getZ() -
getLat
public double getLat() -
getLon
public double getLon() -
getAlt
public double getAlt() -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
visit
public <T, E extends java.lang.Exception> T visit(GeometryVisitor<T,E> visitor) throws E extends java.lang.Exception -
isEmpty
public boolean isEmpty() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
hasZ
public boolean hasZ()
-