* 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 )
| 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. |
no outgoing calls
no test coverage detected