Skip to content

format

typescript
Matrix4x4.SetRow(index, column)

class: Matrix4x4

description

Set the data of a specific row in the matrix.

parameter

param_nametypedescription
indexnumberThe index of the row.
columnVector4The vector value of the row.

reture

typedescription
void

code example

typescript
let matrix = new Matrix4x4();
let column = new Vector4(1,1,1,1);
// Set the data of the first row in the matrix
matrix.SetRow(0, column);