Skip to content

format

typescript
Matrix4x4.Get(index)

class: Matrix4x4

description

Get the value of an element in a matrix based on its row and column index.

The index parameter represents the position of the element in the matrix. For example, 0 represents the element in the first row and first column, 1 represents the element in the second row and first column, 2 represents the element in the third row and first column, and so on. The maximum value for index is 15, representing the element in the fourth row and fourth column.

parameter

param_nametypedescription
indexnumberCan be a value from 0 to 15.

reture

typedescription
numberThe value of the element in the specified row and column of the matrix.

code example