(decomposed)
| 1369 | return Matrix4.from(1 - yy2 - zz2, xy2 + sz2, xz2 - sy2, 0, xy2 - sz2, 1 - xx2 - zz2, yz2 + sx2, 0, xz2 + sy2, yz2 - sx2, 1 - xx2 - yy2, 0, 0, 0, 0, 1); |
| 1370 | } |
| 1371 | static fromDecomposed(decomposed) { |
| 1372 | const m = Matrix3.fromQuaternion(decomposed.rot).mul(decomposed.scale).toMatrix4(); |
| 1373 | m.w = decomposed.disp.extend(1); |
| 1374 | return m; |
| 1375 | } |
| 1376 | constructor(x, y, z, w9){ |
| 1377 | this.ptr = typeof x === "number" ? x : alloc(64); |
| 1378 | this.#internal = new Float32Array(memory.buffer, this.ptr, 16); |
nothing calls this directly
no test coverage detected