格式
typescript
Matrix4x4.AddAssign(rhs)所属类: Matrix4x4
描述
将当前矩阵与一个Matrix4x4矩阵相加。
参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| rhs | Matrix4x4 | Matrix4x4矩阵 |
返回值
| 类型 | 描述 |
|---|---|
void |
代码示例
typescript
let matrix = new Matrix4x4();
let column = new Vector4(1,1,1,1);
//设置矩阵第一列的数据
matrix.SetColumn(0, column);
let rhs = Matrix4x4.identity;
//将当前矩阵与单位矩阵相加
matrix.AddAssign(rhs);