(self, obj)
| 106 | # Binary Arithmetic Operations |
| 107 | |
| 108 | def __add__(self, obj): |
| 109 | if isinstance(obj, Vector2): |
| 110 | return Vector2(self.x + obj.x, self.y + obj.y) |
| 111 | return Vector2(self.x + obj, self.y + obj) |
| 112 | |
| 113 | def __sub__(self, obj): |
| 114 | if isinstance(obj, Vector2): |