getElementIndex

fun getElementIndex(column: Int, row: Int): Int(source)

Computes the array index of the element at the provided row and column.

const myMatrix = new Matrix3();
const column1Row0Index = Matrix3.getElementIndex(1, 0);
const column1Row0 = myMatrix[column1Row0Index]
myMatrix[column1Row0Index] = 10.0;

Return

The index of the element at the provided row and column.

Parameters

column

The zero-based index of the column.

row

The zero-based index of the row.

See also