A community-maintained Python framework for creating mathematical animations.
position_endpoints_on -> put_start_and_end_on
Grant Sanderson8bb1085051a3
diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.pyindex fa5cea348..c1e75e558 100644--- a/manimlib/mobject/mobject.py+++ b/manimlib/mobject/mobject.py@@ -535,7 +535,7 @@ class Mobject(Container):self.scale_in_place((length + buff) / length)return self- def position_endpoints_on(self, start, end):+ def put_start_and_end_on(self, start, end):curr_vect = self.points[-1] - self.points[0]if np.all(curr_vect == 0):raise Exception("Cannot position endpoints of closed loop")diff --git a/old_projects/brachistochrone/curves.py b/old_projects/brachistochrone/curves.pyindex 79348ca73..337bff78a 100644--- a/old_projects/brachistochrone/curves.py+++ b/old_projects/brachistochrone/curves.py@@ -291,7 +291,7 @@ class TryManyPaths(PathSlidingScene):start = target_path.points[0]end = target_path.points[-1]for path in paths:- path.position_endpoints_on(start, end)+ path.put_start_and_end_on(start, end)class RollingRandolph(PathSlidingScene):@@ -331,7 +331,7 @@ class NotTheCircle(PathSlidingScene):self.play(FadeOut(radius))self.play(ApplyMethod(- path.position_endpoints_on, start, end,+ path.put_start_and_end_on, start, end,path_func = path_along_arc(-angle)),run_time = 3