Class GeoCircle
java.lang.Object
org.locationtech.spatial4j.shape.BaseShape<SpatialContext>
org.locationtech.spatial4j.shape.impl.CircleImpl
org.locationtech.spatial4j.shape.impl.GeoCircle
A circle as it exists on the surface of a sphere.
-
Field Summary
Fields inherited from class CircleImpl
enclosingBox, point, radiusDEG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublegetYAxis()TheYcoordinate of where the circle axis intersect.protected SpatialRelationrelateRectanglePhase2(Rectangle r, SpatialRelation bboxSect) Called after bounding box is intersected.voidreset(double x, double y, double radiusDEG) Expert: Resets the state of this shape given the arguments.toString()Methods inherited from class CircleImpl
contains, equals, equals, getArea, getBoundingBox, getBuffered, getCenter, getRadius, getXAxis, hasArea, hashCode, hashCode, isEmpty, relate, relate, relate, relateMethods inherited from class BaseShape
getContextMethods inherited from interface Shape
getContext
-
Constructor Details
-
GeoCircle
-
-
Method Details
-
reset
public void reset(double x, double y, double radiusDEG) Description copied from interface:CircleExpert: Resets the state of this shape given the arguments. This is a performance feature to avoid excessive Shape object allocation as well as some argument error checking. Mutable shapes is error-prone so use with care.- Specified by:
resetin interfaceCircle- Overrides:
resetin classCircleImpl
-
getYAxis
protected double getYAxis()Description copied from class:CircleImplTheYcoordinate of where the circle axis intersect.- Overrides:
getYAxisin classCircleImpl
-
relateRectanglePhase2
Called after bounding box is intersected.- Overrides:
relateRectanglePhase2in classCircleImpl- Parameters:
bboxSect- INTERSECTS or CONTAINS from enclosingBox's intersection- Returns:
- DISJOINT, CONTAINS, or INTERSECTS (not WITHIN)
-
toString
- Overrides:
toStringin classCircleImpl
-