--- ray/src/common/dircode.c 2003/06/20 00:25:49 2.5 +++ ray/src/common/dircode.c 2003/06/27 06:53:21 2.7 @@ -1,13 +1,13 @@ #ifndef lint -static const char RCSid[] = "$Id: dircode.c,v 2.5 2003/06/20 00:25:49 greg Exp $"; +static const char RCSid[] = "$Id: dircode.c,v 2.7 2003/06/27 06:53:21 greg Exp $"; #endif /* - * Compute a 4-byte direction code (int32 type defined in standard.h). + * Compute a 4-byte direction code (externals defined in rtmath.h). * * Mean accuracy is 0.0022 degrees, with a maximum error of 0.0058 degrees. */ -#include "standard.h" +#include "rtmath.h" #define DCSCALE 11585.2 /* (1<<13)*sqrt(2) */ #define FXNEG 01 @@ -33,6 +33,8 @@ FVECT dv; dc |= FXNEG<>F1SFT & FMASK)+.5)*(1./DCSCALE); d2 = ((dc>>F2SFT & FMASK)+.5)*(1./DCSCALE); der = sqrt(1. - d1*d1 - d2*d2);