(other)
| 726 | return new Vector2(this.x - x, this.y - y); |
| 727 | } |
| 728 | mul(other) { |
| 729 | const { x , y } = typeof other === "number" ? { |
| 730 | x: other, |
| 731 | y: other |
| 732 | } : other; |
| 733 | return new Vector2(this.x * x, this.y * y); |
| 734 | } |
| 735 | div(other) { |
| 736 | const { x , y } = typeof other === "number" ? { |
| 737 | x: other, |