home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cutting-Edge 3D Game Programming with C++
/
CE3DC++.ISO
/
BOOK
/
CHAP14
/
SINCOS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-01-24
|
410b
|
20 lines
//
// File name: SinCos.HPP
//
// Description:
//
// Author: John De Goes
//
// Project: Cutting Edge 3D Game Programming
//
#ifndef SINCOSHPP
#define SINCOSHPP
#define COS(a) ( CosTable [a & (DEGREECOUNT - 1)] )
#define SIN(a) ( SinTable [a & (DEGREECOUNT - 1)] )
const unsigned int DEGREECOUNT = 1024;
extern float SinTable [ DEGREECOUNT ];
extern float CosTable [ DEGREECOUNT ];
#endif