(other)
| 712 | return this; |
| 713 | } |
| 714 | add(other) { |
| 715 | const { x , y } = typeof other === "number" ? { |
| 716 | x: other, |
| 717 | y: other |
| 718 | } : other; |
| 719 | return new Vector2(this.x + x, this.y + y); |
| 720 | } |
| 721 | sub(other) { |
| 722 | const { x , y } = typeof other === "number" ? { |
| 723 | x: other, |