move vector as a copy
This commit is contained in:
parent
fbcad8bcd4
commit
9e863858d3
|
@ -92,6 +92,9 @@ class Vector(list):
|
|||
if dy:
|
||||
self.y += dy
|
||||
|
||||
def get_moved(self, dx=0, dy=0):
|
||||
return Vector(self.x + dx, self.y + dy)
|
||||
|
||||
def place_at_origin(self):
|
||||
self.place(0, 0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue