getElementIndex

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

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

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

Return

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

Parameters

row

The zero-based index of the row.

column

The zero-based index of the column.

See also