Addressed places which depended on rotate being about the origin

This commit is contained in:
Grant Sanderson
2018-01-20 13:14:17 -08:00
parent 1ffbc77eda
commit c5b0e26090
10 changed files with 22 additions and 30 deletions

View File

@ -248,16 +248,6 @@ class Mobject(object):
mob.points += about_point
return self
def do_about_point(self, point, method, *args, **kwargs):
self.shift(-point)
method(*args, **kwargs)
self.shift(point)
return self
def do_in_place(self, method, *args, **kwargs):
self.do_about_point(self.get_center(), method, *args, **kwargs)
return self
def rotate_in_place(self, angle, axis = OUT, axes = []):
# redundant with default behavior of rotate now.
return self.rotate(angle, axis = axis, axes = axes)
@ -712,7 +702,6 @@ class Mobject(object):
"""
raise Exception("Not implemented")
def align_points(self, mobject):
count1 = self.get_num_points()
count2 = mobject.get_num_points()