Skip to content

Commit

Permalink
Added docstring to Mobject.center (#3353)
Browse files Browse the repository at this point in the history
  • Loading branch information
behackl authored Sep 2, 2023
1 parent 3b4fca2 commit 50d663e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manim/mobject/mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 50d663e

Please sign in to comment.