Class HoneycombUtilities
- java.lang.Object
-
- net.anwiba.spatial.geometry.utilities.HoneycombUtilities
-
public class HoneycombUtilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HoneycombUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longconvertKey(long sourceKey, double sourceRadius, double targetRadius)static longcreateKey(double x, double y, double radius)static doublegetCenterX(int column, int row, double gridWidth)static doublegetCenterY(int row, double radius)static java.util.List<java.lang.Long>getNeighborKeys(long key)static inttoColumn(long key)static longtoKey(int row, int column)static inttoRow(long key)
-
-
-
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)
-
-