Class AStar.HaversineHeuristic

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double applyAsDouble​(long source)  
      static double distance​(double sourceLatitude, double sourceLongitude, double targetLatitude, double targetLongitude)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • applyAsDouble

        public double applyAsDouble​(long source)
        Specified by:
        applyAsDouble in interface java.util.function.LongToDoubleFunction
      • distance

        public static double distance​(double sourceLatitude,
                                      double sourceLongitude,
                                      double targetLatitude,
                                      double targetLongitude)