-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docstring for Mobject.rotate
and Rotating
class
#4147
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
…into add-rotate-docs
for more information, see https://pre-commit.ci
Mobject.rotate
and Rotating
class
Also add docstring for |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@@ -1011,7 +1011,7 @@ def dot_position(mobject): | |||
label.add_updater(dot_position) | |||
self.add(dot, label) | |||
self.play(Rotating(dot, about_point=ORIGIN, angle=TAU, run_time=TAU, rate_func=linear)) | |||
self.play(Rotating(dot, about_point=ORIGIN, radians=TAU, run_time=TAU, rate_func=linear)) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes an incorrect parameter
in the documentation example of add_updater
. The Rotating
class uses radians
instead of angle
as its parameter.
@@ -3143,7 +3203,7 @@ def override_animate(method) -> types.FunctionType: | |||
.. seealso:: | |||
:attr:`Mobject.animate` | |||
:attr:`~.Mobject.animate` | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a tilde (~
) so that the rendered documentation displays only animate
instead of Mobject.animate
.
Overview: What does this pull request change?
Adding detailed docstrings for the
rotate
method inMobject
class . Also add docstring forRotating
class, including2D
and3D
rotation examples.Reviewer Checklist