format
typescript
Matrix4x4.AddAssign(rhs)class: Matrix4x4
description
Adds a Matrix4x4 matrix to the current matrix.
parameter
| param_name | type | description |
|---|---|---|
| rhs | Matrix4x4 | The Matrix4x4 matrix to add. |
reture
| type | description |
|---|---|
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);