Class Circle2D.HaversinDistance

java.lang.Object
org.apache.lucene.geo.Circle2D.HaversinDistance
All Implemented Interfaces:
Circle2D.DistanceCalculator
Enclosing class:
Circle2D

private static class Circle2D.HaversinDistance extends Object implements Circle2D.DistanceCalculator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final double
     
    (package private) final double
     
    (package private) final double
     
    (package private) final boolean
     
    (package private) final Rectangle
     
    (package private) final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    HaversinDistance(double centerLon, double centerLat, double radius)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(double x, double y)
    check if the point is within a distance
    boolean
    disjoint(double minX, double maxX, double minY, double maxY)
    check if the bounding box is disjoint with this calculator bounding box
    double
    get max X of this calculator
    double
    get max Y of this calculator
    double
    get min X of this calculator
    double
    get min Y of this calculator
    double
    get center Y
    double
    geX()
    get center X
    boolean
    intersectsLine(double aX, double aY, double bX, double bY)
    check if the line is within a distance
    relate(double minX, double maxX, double minY, double maxY)
    Relates this calculator to the provided bounding box
    boolean
    within(double minX, double maxX, double minY, double maxY)
    check if the bounding box is contains this calculator bounding box

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait