You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test script:
Problem is, when you try to normalize a Vector Object, which only has zero value, it tries to divide
them by 0 (their current magnitude), setting the values to nan. It would be handy if a error would pop up.
abhikpal
changed the title
[Feature Request] raise an error, when Vector.normalize() tries to normalize a "zero-vector"
raise an error, when Vector.normalize() tries to normalize a "zero-vector"
May 1, 2018
Test script:
Problem is, when you try to normalize a Vector Object, which only has zero value, it tries to divide
them by 0 (their current magnitude), setting the values to
nan
. It would be handy if a error would pop up.Expected behavior:
Actual behavior
Errors produced (if any):
p5 version:
0.3.0a2
Python version:
Python 3.6.4
Operating System:
MacOS
The text was updated successfully, but these errors were encountered: