Constructor and Description |
---|
Generator() |
Modifier and Type | Method and Description |
---|---|
static int |
getOffset(int[] ordinals,
int[] axisMultipliers) |
static CellKey |
newCellKey(int size)
Creates a CellKey with a given number of axes.
|
static CellKey |
newCellKey(int[] pos)
Creates a CellKey populated with the given coordinates.
|
(package private) static CellKey |
newManyCellKey(int size)
Creates a CellKey implemented by an array to hold the coordinates,
regardless of the size.
|
public static CellKey newCellKey(int size)
size
- Number of axespublic static CellKey newCellKey(int[] pos)
pos
- Coordinate arraystatic CellKey newManyCellKey(int size)
This is used for testing only. The CellKey will fail to compare equal to naturally created keys of size 0, 1, 2 or 3.
size
- Number of coordinatespublic static int getOffset(int[] ordinals, int[] axisMultipliers)