in packages/common/src/math/matrix.ts [495:515]
public equals(value: Matrix): boolean {
const other = (value as Matrix);
if (!other) {
return false;
}
if (this._isIdentity || other._isIdentity) {
if (!this._isIdentityDirty && !other._isIdentityDirty) {
return this._isIdentity && other._isIdentity;
}
}
const m = this.m;
const om = other.m;
return (
m[0] === om[0] && m[1] === om[1] && m[2] === om[2] && m[3] === om[3] &&
m[4] === om[4] && m[5] === om[5] && m[6] === om[6] && m[7] === om[7] &&
m[8] === om[8] && m[9] === om[9] && m[10] === om[10] && m[11] === om[11] &&
m[12] === om[12] && m[13] === om[13] && m[14] === om[14] && m[15] === om[15]
);
}