Class GeoCircle

  • All Implemented Interfaces:
    Circle, Shape

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

      • inverseCircle

        private GeoCircle inverseCircle
      • horizAxisY

        private double horizAxisY
    • Method Detail

      • 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
      • numCornersIntersect

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