(other)
| 559 | return this; |
| 560 | } |
| 561 | add(other) { |
| 562 | const { x , y , z , w: w4 } = typeof other === "number" ? { |
| 563 | x: other, |
| 564 | y: other, |
| 565 | z: other, |
| 566 | w: other |
| 567 | } : other; |
| 568 | return new Vector4(this.x + x, this.y + y, this.z + z, this.w + w4); |
| 569 | } |
| 570 | sub(other) { |
| 571 | const { x , y , z , w: w5 } = typeof other === "number" ? { |
| 572 | x: other, |