position_endpoints_on -> put_start_and_end_on

This commit is contained in:
Grant Sanderson
2019-02-07 10:59:28 -08:00
parent ce2b508e10
commit 8bb1085051
2 changed files with 3 additions and 3 deletions

View File

@ -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")

View File

@ -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