Class CellKey.Generator

  • Enclosing interface:
    CellKey

    public abstract static class CellKey.Generator
    extends Object
    • Constructor Detail

      • Generator

        public Generator()
    • Method Detail

      • newCellKey

        public static CellKey newCellKey​(int size)
        Creates a CellKey with a given number of axes.
        Parameters:
        size - Number of axes
        Returns:
        new CellKey
      • newCellKey

        public static CellKey newCellKey​(int[] pos)
        Creates a CellKey populated with the given coordinates.
        Parameters:
        pos - Coordinate array
        Returns:
        CellKey
      • getOffset

        public static int getOffset​(int[] ordinals,
                                    int[] axisMultipliers)