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

Method truncN

examples/extern/gmath.bundle.js:529–540  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

527 return this.div(this.mag());
528 }
529 truncN(n) {
530 switch(n){
531 case 0:
532 return new Vector3(this.y, this.z, this.w);
533 case 1:
534 return new Vector3(this.x, this.z, this.w);
535 case 2:
536 return new Vector3(this.x, this.y, this.w);
537 case 3:
538 return new Vector3(this.x, this.y, this.z);
539 }
540 }
541 trunc() {
542 return new Vector3(this.x, this.y, this.z);
543 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected