Yea, good point. I'd probably get a nasty headache later on if I hadn't figured that out now. Thanks for that.
[edit] just realized that I had ASin where I should have had ACos, but changing this had no affect on the returned value.
[edit 2] I found the problem. Dummie me put leg/hypotenuse rather than hypotenuse/leg -.-
[edit] just realized that I had ASin where I should have had ACos, but changing this had no affect on the returned value.
[edit 2] I found the problem. Dummie me put leg/hypotenuse rather than hypotenuse/leg -.-