MCPcopy
hub / github.com/mrdoob/three.js / set

Method set

src/math/Matrix3.js:99–109  ·  view source on GitHub ↗

* Sets the elements of the matrix.The arguments are supposed to be * in row-major order. * * @param {number} [n11] - 1-1 matrix element. * @param {number} [n12] - 1-2 matrix element. * @param {number} [n13] - 1-3 matrix element. * @param {number} [n21] - 2-1 matrix element. * @param {n

( n11, n12, n13, n21, n22, n23, n31, n32, n33 )

Source from the content-addressed store, hash-verified

97 * @return {Matrix3} A reference to this matrix.
98 */
99 set( n11, n12, n13, n21, n22, n23, n31, n32, n33 ) {
100
101 const te = this.elements;
102
103 te[ 0 ] = n11; te[ 1 ] = n21; te[ 2 ] = n31;
104 te[ 3 ] = n12; te[ 4 ] = n22; te[ 5 ] = n32;
105 te[ 6 ] = n13; te[ 7 ] = n23; te[ 8 ] = n33;
106
107 return this;
108
109 }
110
111 /**
112 * Sets this matrix to the 3x3 identity matrix.

Callers 8

constructorMethod · 0.95
identityMethod · 0.95
setFromMatrix4Method · 0.95
invertMethod · 0.95
setUvTransformMethod · 0.95
makeTranslationMethod · 0.95
makeRotationMethod · 0.95
makeScaleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected