* Creates a new identity mat3 * * @returns {mat3} a new 3x3 matrix
()
| 220 | * @returns {mat3} a new 3x3 matrix |
| 221 | */ |
| 222 | function create() { |
| 223 | var out = new glMatrix.ARRAY_TYPE(9); |
| 224 | out[0] = 1; |
| 225 | out[1] = 0; |
| 226 | out[2] = 0; |
| 227 | out[3] = 0; |
| 228 | out[4] = 1; |
| 229 | out[5] = 0; |
| 230 | out[6] = 0; |
| 231 | out[7] = 0; |
| 232 | out[8] = 1; |
| 233 | return out; |
| 234 | } |
| 235 | |
| 236 | /** |
| 237 | * Copies the upper-left 3x3 values into the given mat3. |
no outgoing calls