MCPcopy
hub / github.com/ManimCommunity/manim / apply_function_to_position

Method apply_function_to_position

manim/mobject/mobject.py:1459–1461  ·  view source on GitHub ↗
(self, function: MappingFunction)

Source from the content-addressed store, hash-verified

1457 return self
1458
1459 def apply_function_to_position(self, function: MappingFunction) -> Self:
1460 self.move_to(function(self.get_center()))
1461 return self
1462
1463 def apply_function_to_submobject_positions(self, function: MappingFunction) -> Self:
1464 for submob in self.submobjects:

Calls 2

move_toMethod · 0.95
get_centerMethod · 0.95

Tested by

no test coverage detected