Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Remove alignment_vect arg in align_to (#3165)

Elyanah Acoe20e446df684
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index 7b6515068..e51efb116 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -2094,17 +2094,12 @@ class Mobject:
self,
mobject_or_point: Mobject | np.ndarray | list,
direction=ORIGIN,
- alignment_vect=UP,
):
"""Aligns mobject to another :class:`~.Mobject` in a certain direction.
Examples:
mob1.align_to(mob2, UP) moves mob1 vertically so that its
top edge lines ups with mob2's top edge.
-
- mob1.align_to(mob2, alignment_vect = RIGHT) moves mob1
- horizontally so that it's center is directly above/below
- the center of mob2
"""
if isinstance(mobject_or_point, Mobject):
point = mobject_or_point.get_critical_point(direction)