Skip to content

format

typescript
Matrix4x4.EqualsTo(other)

class: Matrix4x4

description

判断当前矩阵与other是否相等。

parameter

param_nametypedescription
otherMatrix4x4Matrix4x4值

reture

typedescription
boolean矩阵是否相等

code example

typescript
let matrix = new Matrix4x4();
let column = new Vector4(1,1,1,1);
//设置矩阵第一列的数据
matrix.SetColumn(0, column);

let other = Matrix4x4.identity;
//判断当前矩阵与other是否相等
matrix.EqualsTo(other);