Matrix elements in the form of a flat array.
Static
Readonly
IDENTITYA constant matrix set to the identity.
Static
Readonly
ZEROA constant matrix with all elements set to 0.
Copies the contents of a source 3x3 matrix to a destination 3x3 matrix.
A 3x3 matrix to be copied.
Self for chaining.
const src = new pc.Mat3().translate(10, 20, 30);
const dst = new pc.Mat3();
dst.copy(src);
console.log("The two matrices are " + (src.equals(dst) ? "equal" : "different"));
Reports whether two matrices are equal.
The other matrix.
True if the matrices are equal and false otherwise.
const a = new pc.Mat3().translate(10, 20, 30);
const b = new pc.Mat3();
console.log("The two matrices are " + (a.equals(b) ? "equal" : "different"));
A 3x3 matrix.