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
FieldsFields inherited from class org.locationtech.spatial4j.shape.impl.CircleImpl
enclosingBox, point, radiusDEG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublegetYAxis()TheYcoordinate of where the circle axis intersect.private voidinit()private intReturns either 0 for none, 1 for some, or 4 for all.private SpatialRelationprotected 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 org.locationtech.spatial4j.shape.impl.CircleImpl
contains, equals, equals, getArea, getBoundingBox, getBuffered, getCenter, getRadius, getXAxis, hasArea, hashCode, hashCode, isEmpty, relate, relate, relate, relateMethods inherited from class org.locationtech.spatial4j.shape.BaseShape
getContextMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.locationtech.spatial4j.shape.Shape
getContext
-
Field Details
-
inverseCircle
-
horizAxisY
private double horizAxisY
-
-
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
-
init
private void init() -
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)
-
relateRectangleCircleWrapsPole
-
numCornersIntersect
Returns either 0 for none, 1 for some, or 4 for all. -
toString
- Overrides:
toStringin classCircleImpl
-