Closed JonnyPtn closed 6 years ago
Originally I believe I returned a zero vector, but changed the behaviour based on a post on the sfml forum - possibly this one which seemed to make more sense to me, ie the fact that you're trying to normalise a zero vector implies a logic error.
Seems reasonable, the length should always be 1. Thanks!
calling
xy::Util::Vector::normalise(vec)
wherevec
is 0,0 causes an assert to fail. I'd expect it to just return 0,0?Not a major issue, as I can adjust my code to handle these special cases, just seems like it would add some convenience without any downsides?