summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sly/vector.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/sly/vector.scm b/sly/vector.scm
index ecaad2a..a41176e 100644
--- a/sly/vector.scm
+++ b/sly/vector.scm
@@ -151,7 +151,7 @@ both be 3D vectors."
"Normalize the vector V."
(let ((m (magnitude v)))
(if (zero? m)
- 0
+ v
(vector-map (lambda (i n)
(/ n m))
v))))