getElementIndex method

int getElementIndex(
  1. int column,
  2. int row
)

Computes the element index according to the given column and row.

Implementation

int getElementIndex(int column, int row ) {
	return column * 3 + row;
}