A community-maintained Python framework for creating mathematical animations.
Bug fix to Line.insert_n_anchor_points
Grant Sanderson29962068dbb3
diff --git a/topics/geometry.py b/topics/geometry.pyindex 2312e74b0..8e3f910bc 100644--- a/topics/geometry.py+++ b/topics/geometry.py@@ -356,7 +356,7 @@ class Line(VMobject):def insert_n_anchor_points(self, n):if not self.path_arc:n_anchors = self.get_num_anchor_points()- new_num_points = 3*(n_anchors + n)+1+ new_num_points = 3*(n_anchors + n)-2self.points = np.array([self.point_from_proportion(alpha)for alpha in np.linspace(0, 1, new_num_points)