mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Bug fix to Arrow
This commit is contained in:
parent
499080fb97
commit
6a781d0737
1 changed files with 1 additions and 1 deletions
|
@ -600,7 +600,7 @@ class Arrow(Line):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def get_normal_vector(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)
|
result = np.cross(p2 - p1, p1 - p0)
|
||||||
norm = get_norm(result)
|
norm = get_norm(result)
|
||||||
if norm == 0:
|
if norm == 0:
|
||||||
|
|
Loading…
Add table
Reference in a new issue