Class RTreeUtils


  • public class RTreeUtils
    extends Object
    • Constructor Detail

      • RTreeUtils

        public RTreeUtils()
    • Method Detail

      • getEnclosingArea

        public static double getEnclosingArea​(Node a,
                                              Node b)
      • getExpansionCost

        public static double getExpansionCost​(Node node,
                                              Point point)
      • enclose

        public static void enclose​(Node[] nodes)
      • calculateHaversineDistance

        public static double calculateHaversineDistance​(double lat1,
                                                        double lon1,
                                                        double lat2,
                                                        double lon2)
        Returns distance between two geo coordinates in meters according to https://en.wikipedia.org/wiki/Haversine_formula