Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Corrected partial_bezier_points

Anthony Northrupf05dd416a479
diff --git a/helpers.py b/helpers.py
index dbfd5d493..2dd96c8c6 100644
--- a/helpers.py
+++ b/helpers.py
@@ -182,7 +182,7 @@ def partial_bezier_points(points, a, b):
for i in range(len(points))
])
return np.array([
- bezier(a_to_1[:i+1])(b)
+ bezier(a_to_1[:i+1])((b-a)/(1.-a))
for i in range(len(points))
])