Revert "Merge branch 'master' of github.com:3b1b/manim into alt-calc"

This reverts commit 17a1ea6db500eddfdec75cc727b70737d892e961, reversing
changes made to c8c6e6d9ba77d42c8d50d8187ca2b0427da0079c.
This commit is contained in:
Grant Sanderson
2018-05-21 12:11:46 -07:00
parent 0f3b54694d
commit 13d7228918
22 changed files with 468 additions and 328 deletions

View File

@ -199,6 +199,15 @@ class Mobject(Container):
)
return self
def apply_function_to_position(self, function):
self.move_to(function(self.get_center()))
return self
def apply_function_to_submobject_positions(self, function):
for submob in self.submobjects:
submob.apply_function_to_position(function)
return self
def apply_matrix(self, matrix, **kwargs):
# Default to applying matrix about the origin, not mobjects center
if len(kwargs) == 0: