scribble · (jan) Seli · she/her
💚☃️
def __add__(self, other):
return Vector(self.x + other.x, self.y + other.y)
so then you can just do vecA + vecB instead of vecA.add(vecB)
def __add__(self, other):
return Vector(self.x + other.x, self.y + other.y)
so then you can just do vecA + vecB instead of vecA.add(vecB)