Update Vector2.cpp

If magnitude is 0, that means x and y would also be 0 anyway.
Update Vector2.cpp

(fixed Vector2f as well)
Merge pull request #1 from coi2/patch-1

Fixed vector magnitude functions. Thanks Coi! :D