(n)
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected