Re: [Audyssey] Arc Tangent vs bearing

2011-01-20 Thread Cara Quinn
Hey Rynhardt! Yes, you're right and thanks for posting. :) It's funny as I'd tried this method some time ago with a GPS app I'm working on and it seemed to fail at times in that context, (which is why I posted mine) so I chalked it up to my blonde sleep-deprived brain at the time! lol! -So I'd

Re: [Audyssey] Arc Tangent vs bearing

2011-01-19 Thread Rynhardt Kruger
Hi Cara, One thing I've found is that you can get the same result by swapping the arguments to atan2. Using your variable names, angle=atan2(vectorX,vectorY)*180/M_PI; if (angle<0) angle+=360; Take care, Rynhardt * Cara Quinn [110119 23:47]: > Thomas et al; > > It occurred to me, that durin