Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Bug fix to Arrow

Grant Sanderson6a781d0737c8
diff --git a/mobject/geometry.py b/mobject/geometry.py
index cdc6bc7a9..8dbb61a29 100644
--- a/mobject/geometry.py
+++ b/mobject/geometry.py
@@ -600,7 +600,7 @@ class Arrow(Line):
return self
def get_normal_vector(self):
- p0, p1, p2 = self.tip[0].get_anchors()
+ p0, p1, p2 = self.tip[0].get_anchors()[:3]
result = np.cross(p2 - p1, p1 - p0)
norm = get_norm(result)
if norm == 0: