From 447b7a09f1c2778139a648b6a3aec56c1afd8461 Mon Sep 17 00:00:00 2001 From: Benjamin Hackl Date: Fri, 1 Sep 2023 16:49:44 +0200 Subject: [PATCH] added docstring to Mobject.center --- manim/mobject/mobject.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py index bd356f0884..72faf99ea1 100644 --- a/manim/mobject/mobject.py +++ b/manim/mobject/mobject.py @@ -1381,6 +1381,13 @@ def pose_at_angle(self, **kwargs): # Positioning methods def center(self): + """Moves the center of the mobject to the center of the scene. + + Returns + ------- + :class:`.Mobject` + The centered mobject. + """ self.shift(-self.get_center()) return self