In article <email@example.com>, firstname.lastname@example.org wrote: > In article <email@example.com> > dwcantrellNOdwSPAM@aol.com.invalid "David W. Cantrell" writes: > >firstname.lastname@example.org (John Prussing) wrote: > >>For background, atan2(y,x) is based on tan(theta) = y/x. > > > >It's based on that together with the signs of the two arguments, > >as you indicate below. > > > >>(I hope I have the arguments in the correct order.) > > > >It should be atan2(x,y) actually. > > It depends. In C it is atan2(y,x).
Yes, thanks for pointing this out. John may well have had the order of the arguments correct, depending on what language he had in mind. Unfortunately, the order of arguments is language-dependent, a fact which had slipped my mind when responding initially.