From 8bb1085051a35bfd8eb26966082e44f4a09350a8 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 7 Feb 2019 10:59:28 -0800 Subject: [PATCH] position_endpoints_on -> put_start_and_end_on --- manimlib/mobject/mobject.py | 2 +- old_projects/brachistochrone/curves.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index fa5cea34..c1e75e55 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.py index 79348ca7..337bff78 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