Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Make sure normalize can take in a list

Grant Sanderson1b0056f05d43
diff --git a/utils/space_ops.py b/utils/space_ops.py
index 0bc6b744b..07d8ea494 100644
--- a/utils/space_ops.py
+++ b/utils/space_ops.py
@@ -103,7 +103,7 @@ def project_along_vector(point, vector):
def normalize(vect, fall_back=None):
norm = get_norm(vect)
if norm > 0:
- return vect / norm
+ return np.array(vect) / norm
else:
if fall_back is not None:
return fall_back