mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 13:03:31 +08:00
Refactoring how Camera frame height and width are handled
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user