Open 4lbert opened 6 years ago
That may be a convergence bug. 3.polar(4)
does return 5
.
Yeah, seems like this happens when both numbers are too close to each other. Thanks, guess I'll just ignore when this causes bugs, shouldn't be too often after all.
Is there any functions for calculating a vectors magnitude and angle in this library?
I tried using polar() but the results are not what I expected. The following code prints 0.7375122532248497, but it should be 1.41... :
I've also tried different values, but I never get a value that would be the magnitude of the vector.
Thanks for this library!