--- ray/src/common/tcos.c 2013/02/08 16:10:07 3.8 +++ ray/src/common/tcos.c 2013/02/08 16:39:01 3.9 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: tcos.c,v 3.8 2013/02/08 16:10:07 greg Exp $"; +static const char RCSid[] = "$Id: tcos.c,v 3.9 2013/02/08 16:39:01 greg Exp $"; #endif /* * Table-based cosine approximation. @@ -64,7 +64,7 @@ atan2a(double y, double x) aratio = (ratio = y/x) >= 0 ? ratio : -ratio; if (aratio > 1.01) - return PI/2. - aatan2(x, y); + return PI/2. - atan2a(x, y); val = PI/4.*ratio - ratio*(aratio - 1.)*(0.2447 + 0.0663*aratio);