Skip to content

format

typescript
Matrix4x4.Set(index, value)

class: Matrix4x4

description

Set the value of the elements in the matrix at the specified row and column.

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

parameter

param_nametypedescription
indexnumberAn integer value between 0 and 15.
valuenumberThe value to set for the element.

reture

typedescription
voidNone

code example