in packages/common/src/math/matrix.ts [93:109]
public isIdentityAs3x2(): boolean {
if (this._isIdentity3x2Dirty) {
this._isIdentity3x2Dirty = false;
if (this._m[0] !== 1.0 || this._m[5] !== 1.0 || this._m[15] !== 1.0) {
this._isIdentity3x2 = false;
} else if (this._m[1] !== 0.0 || this._m[2] !== 0.0 || this._m[3] !== 0.0 ||
this._m[4] !== 0.0 || this._m[6] !== 0.0 || this._m[7] !== 0.0 ||
this._m[8] !== 0.0 || this._m[9] !== 0.0 || this._m[10] !== 0.0 || this._m[11] !== 0.0 ||
this._m[12] !== 0.0 || this._m[13] !== 0.0 || this._m[14] !== 0.0) {
this._isIdentity3x2 = false;
} else {
this._isIdentity3x2 = true;
}
}
return this._isIdentity3x2;
}