NavList:
A Community Devoted to the Preservation and Practice of Celestial Navigation and Other Methods of Traditional Wayfinding
Re: distance with atan2
From: Herbert Prinz
Date: 2005 Nov 12, 14:34 -0500
From: Herbert Prinz
Date: 2005 Nov 12, 14:34 -0500
George Huxtable wrote: > If a POL function is used to provide an angle output, as the A of a (R,A) > pair, is the resulting R of any value, or must it be discarded? That's a > similar question to what Bill has been asking. Probably you have read my previous post in the mean time and have thus found the answer yourself. The x and y in Paul's formula are really the cosine and sine of the same angle, namly of the required one between the two position vectors. Therefore A can be interpreted as the direction of a unit vector and R as its length. If your program does not spit out "1" for R each time you run it, you better call your bugcheck routine. Herbert Prinz