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

Class Vector4

examples/extern/gmath.bundle.js:447–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445 }
446}
447class Vector4 {
448 #internal = new Float32Array(4);
449 get [0]() {
450 return this.#internal[0];
451 }
452 set [0](val) {
453 this.#internal[0] = val;
454 }
455 get [1]() {
456 return this.#internal[1];
457 }
458 set [1](val) {
459 this.#internal[1] = val;
460 }
461 get [2]() {
462 return this.#internal[2];
463 }
464 set [2](val) {
465 this.#internal[2] = val;
466 }
467 get [3]() {
468 return this.#internal[3];
469 }
470 set [3](val) {
471 this.#internal[3] = val;
472 }
473 get x() {
474 return this.#internal[0];
475 }
476 set x(val) {
477 this.#internal[0] = val;
478 }
479 get y() {
480 return this.#internal[1];
481 }
482 set y(val) {
483 this.#internal[1] = val;
484 }
485 get z() {
486 return this.#internal[2];
487 }
488 set z(val) {
489 this.#internal[2] = val;
490 }
491 get w() {
492 return this.#internal[3];
493 }
494 set w(val) {
495 this.#internal[3] = val;
496 }
497 static negativeInfinity() {
498 return new Vector4(Number.NEGATIVE_INFINITY);
499 }
500 static positiveInfinity() {
501 return new Vector4(Number.POSITIVE_INFINITY);
502 }
503 static zero() {
504 return new Vector4(0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected