public abstract static class Modulos.Base extends Object implements Modulos
Modulos.Base, Modulos.Generator, Modulos.Many, Modulos.One, Modulos.Three, Modulos.Two, Modulos.Zero
Modifier and Type | Field and Description |
---|---|
protected int[] |
modulos |
Modifier | Constructor and Description |
---|---|
protected |
Base(Axis[] axes) |
protected |
Base(int[] lengths) |
Modifier and Type | Method and Description |
---|---|
abstract int |
getCellOrdinal(int[] pos)
Converts a set of cell coordinates to a cell ordinal.
|
abstract int[] |
getCellPos(int cellOrdinal)
Converts a cell ordinal to a set of cell coordinates.
|
String |
toString() |
protected Base(Axis[] axes)
protected Base(int[] lengths)
public abstract 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
cellOrdinal
- Cell ordinalpublic abstract int getCellOrdinal(int[] pos)
Modulos
Modulos.getCellPos(int)
.getCellOrdinal
in interface Modulos
pos
- Cell coordinatesCopyright © 2019 Hitachi Vantara. All rights reserved.