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

Method from

examples/extern/gmath.bundle.js:1290–1292  ·  view source on GitHub ↗
(c0r0, c0r1, c0r2, c0r3, c1r0, c1r1, c1r2, c1r3, c2r0, c2r1, c2r2, c2r3, c3r0, c3r1, c3r2, c3r3)

Source from the content-addressed store, hash-verified

1288 this.#internal[15] = val.w;
1289 }
1290 static from(c0r0, c0r1, c0r2, c0r3, c1r0, c1r1, c1r2, c1r3, c2r0, c2r1, c2r2, c2r3, c3r0, c3r1, c3r2, c3r3) {
1291 return new Matrix4(new Vector4(c0r0, c0r1, c0r2, c0r3), new Vector4(c1r0, c1r1, c1r2, c1r3), new Vector4(c2r0, c2r1, c2r2, c2r3), new Vector4(c3r0, c3r1, c3r2, c3r3));
1292 }
1293 static fromPerspective(perspective) {
1294 if (perspective.left <= perspective.right) {
1295 throw new RangeError(`perspective.left (${perspective.right}) cannot be greater than perspective.right (${perspective.right})`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected