From: Jason W. <fe...@io...> - 1999-10-30 10:54:17
|
> >angle = acos(x / r) > > I need a full circle angle, and there is no fixed point or very fast > version of this function. Well, aren't we the lazy one today! angle = ((y < 0)?(2 * M_PI):0) + acos(x / sqrt((x*x)/(y*y)); And, you don't need a faster function unless you are using a 386 or are doing this 2 million times a second. > There is always one more bug. I hate to disagree, but sometimes, there simply isn't ^_^ |