MCPcopy Create free account
hub / github.com/DjDeveloperr/deno_desktop / fromDecomposed

Method fromDecomposed

examples/extern/gmath.bundle.js:1371–1375  ·  view source on GitHub ↗
(decomposed)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 4

extendMethod · 0.80
toMatrix4Method · 0.45
mulMethod · 0.45
fromQuaternionMethod · 0.45

Tested by

no test coverage detected