Finally corrected getAngleFromAnyPoint in math.js

I accidentally did an error in this function, now i checked it and its
100 percent correct, sorry for the inconvenience caused