Closed usakhelo closed 1 year ago
This PR fixes #126 Not sure if this is the best way of fixing this, but it looks like when angle is outside -+360 degrees, index equals to 0 and by that sin and cos return wrong values. normalize function stolen from SO
sin
cos
normalize
Well, this limitation is documented in mctrigonom.hh header. I still don't object merging this.
mctrigonom.hh
Thanks!
This PR fixes #126 Not sure if this is the best way of fixing this, but it looks like when angle is outside -+360 degrees, index equals to 0 and by that
sin
andcos
return wrong values.normalize
function stolen from SO