Simplify Point.set_location

This commit is contained in:
Grant Sanderson 2021-01-15 08:55:40 -10:00
parent d4c89e520f
commit 1f3b058aa9

View file

@ -1461,4 +1461,4 @@ class Point(Mobject):
return self.get_location()
def set_location(self, new_loc):
self.set_points(np.array(new_loc, ndmin=2, dtype=float))
self.set_points([new_loc])