Skip to content

format

typescript
Matrix4x4.GetColumn(index)

class: Matrix4x4

description

Get the specified column data of the matrix.

parameter

param_nametypedescription
indexnumberThe index of the column.

reture

typedescription
Vector4The vector value of the column.

code example

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