mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 13:03:31 +08:00
Addressed places which depended on rotate being about the origin
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user