Mail Archives: djgpp/1998/10/06/22:10:31.1
JEFF wrote:
> The atan() function can only return values between -90 and 90 degrees,
> which
> is two out of four quandrants. You need to check the signs of v1 and
> v2 to
> determine if the angle is between -180 and -90 or between 90 and 180
> degrees and add or subtract 90 degrees accordingly.
Or just use atan2. That's what it's for; no use reinventing the wheel.
--
Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900
Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com
San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/
USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE
\
/ Bachelors have consciences, married men have wives.
/ H.L. Mencken
- Raw text -