home *** CD-ROM | disk | FTP | other *** search
/ Cutting-Edge 3D Game Programming with C++ / CE3DC++.ISO / BOOK / CHAP09 / SINCOS.BAK < prev    next >
Encoding:
Text File  |  1995-10-26  |  364 b   |  16 lines

  1. //
  2. // File name: SinCos.HPP
  3. //
  4. // Description:
  5. //
  6. // Author: John De Goes
  7. //
  8. // Project: Cutting Edge 3D Game Programming
  9. //
  10.  
  11. #define COS(a) ( CosTable [a & (DEGREECOUNT - 1)] )
  12. #define SIN(a) ( SinTable [a & (DEGREECOUNT - 1)] )
  13.  
  14. const unsigned int DEGREECOUNT = 1024;
  15. extern double SinTable [ DEGREECOUNT ];
  16. extern double CosTable [ DEGREECOUNT ];