setDimensionSimbols method
Changes the elements of this IntersectionMatrix
to the
dimension symbols in dimensionSymbols
.
@param dimensionSymbols nine dimension symbols to which to set this IntersectionMatrix
s elements. Possible values are {T, F, * , 0, 1, 2}
Implementation
void setDimensionSimbols(String dimensionSymbols) {
for (int i = 0; i < dimensionSymbols.length; i++) {
int row = (i / 3).floor();
int col = i % 3;
matrix[row][col] = Dimension.toDimensionValue(dimensionSymbols[i]);
}
}