Skip to content

format

typescript
Matrix4x4.AddAssign(rhs)

class: Matrix4x4

description

Adds a Matrix4x4 matrix to the current matrix.

parameter

param_nametypedescription
rhsMatrix4x4The Matrix4x4 matrix to add.

reture

typedescription
void

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);

let rhs = Matrix4x4.identity;
// Add the current matrix to the identity matrix
matrix.AddAssign(rhs);