public static class Modulos.Zero extends Modulos.Base
Modulos.Base, Modulos.Generator, Modulos.Many, Modulos.One, Modulos.Three, Modulos.Two, Modulos.Zero
modulos
Modifier and Type | Method and Description |
---|---|
int |
getCellOrdinal(int[] pos)
Converts a set of cell coordinates to a cell ordinal.
|
int[] |
getCellPos(int cellOrdinal)
Converts a cell ordinal to a set of cell coordinates.
|
toString
public final int[] getCellPos(int cellOrdinal)
Modulos
Modulos.getCellOrdinal(int[])
. For example, if this result is 10 x 10 x 10,
then cell ordinal 537 has coordinates (5, 3, 7).getCellPos
in interface Modulos
getCellPos
in class Modulos.Base
cellOrdinal
- Cell ordinalpublic final int getCellOrdinal(int[] pos)
Modulos
Modulos.getCellPos(int)
.getCellOrdinal
in interface Modulos
getCellOrdinal
in class Modulos.Base
pos
- Cell coordinatesCopyright © 2019 Hitachi Vantara. All rights reserved.