Class GeoCircle

All Implemented Interfaces:
Circle, Shape

public class GeoCircle extends CircleImpl
A circle as it exists on the surface of a sphere.
  • Field Details

    • inverseCircle

      private GeoCircle inverseCircle
    • horizAxisY

      private double horizAxisY
  • Constructor Details

  • Method Details

    • reset

      public void reset(double x, double y, double radiusDEG)
      Description copied from interface: Circle
      Expert: 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:
      reset in interface Circle
      Overrides:
      reset in class CircleImpl
    • init

      private void init()
    • getYAxis

      protected double getYAxis()
      Description copied from class: CircleImpl
      The Y coordinate of where the circle axis intersect.
      Overrides:
      getYAxis in class CircleImpl
    • relateRectanglePhase2

      protected SpatialRelation relateRectanglePhase2(Rectangle r, SpatialRelation bboxSect)
      Called after bounding box is intersected.
      Overrides:
      relateRectanglePhase2 in class CircleImpl
      Parameters:
      bboxSect - INTERSECTS or CONTAINS from enclosingBox's intersection
      Returns:
      DISJOINT, CONTAINS, or INTERSECTS (not WITHIN)
    • relateRectangleCircleWrapsPole

      private SpatialRelation relateRectangleCircleWrapsPole(Rectangle r, SpatialContext ctx)
    • numCornersIntersect

      private int numCornersIntersect(Rectangle r)
      Returns either 0 for none, 1 for some, or 4 for all.
    • toString

      public String toString()
      Overrides:
      toString in class CircleImpl