(other)
| 405 | return new Vector3(this.x * x, this.y * y, this.z * z); |
| 406 | } |
| 407 | div(other) { |
| 408 | const { x , y , z } = typeof other === "number" ? { |
| 409 | x: other, |
| 410 | y: other, |
| 411 | z: other |
| 412 | } : other; |
| 413 | return new Vector3(this.x / x, this.y / y, this.z / z); |
| 414 | } |
| 415 | neg() { |
| 416 | return new Vector3(-this.x, -this.y, -this.z); |
| 417 | } |