Class HoneycombUtilities


  • public class HoneycombUtilities
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long convertKey​(long sourceKey, double sourceRadius, double targetRadius)  
      static long createKey​(double x, double y, double radius)  
      static double getCenterX​(int column, int row, double gridWidth)  
      static double getCenterY​(int row, double radius)  
      static java.util.List<java.lang.Long> getNeighborKeys​(long key)  
      static int toColumn​(long key)  
      static long toKey​(int row, int column)  
      static int toRow​(long key)  
      • Methods inherited from class java.lang.Object

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

      • HoneycombUtilities

        public HoneycombUtilities()
    • Method Detail

      • createKey

        public static long createKey​(double x,
                                     double y,
                                     double radius)
      • toKey

        public static long toKey​(int row,
                                 int column)
      • toColumn

        public static int toColumn​(long key)
      • toRow

        public static int toRow​(long key)
      • getNeighborKeys

        public static java.util.List<java.lang.Long> getNeighborKeys​(long key)
      • convertKey

        public static long convertKey​(long sourceKey,
                                      double sourceRadius,
                                      double targetRadius)
      • getCenterX

        public static double getCenterX​(int column,
                                        int row,
                                        double gridWidth)
      • getCenterY

        public static double getCenterY​(int row,
                                        double radius)