#include <OwnMath.h>
Public Member Functions | |
double | Cos (int index) |
double | Sin (int index) |
tSinCosLookupTable () | |
Static Public Attributes | |
static const double | cSCALE_FACTOR = 16384. / (2. * M_PI) |
static const int | cTABLE_INDEX_MASK = cTABLE_SIZE-1 |
static const int | cTABLE_SIZE = 16384 |
Private Attributes | |
double | m_cos_table [cTABLE_SIZE] |
double | m_sin_table [cTABLE_SIZE] |
tSinCosLookupTable::tSinCosLookupTable | ( | ) | [inline] |
double tSinCosLookupTable::Cos | ( | int | index | ) | [inline] |
double tSinCosLookupTable::Sin | ( | int | index | ) | [inline] |
const double tSinCosLookupTable::cSCALE_FACTOR = 16384. / (2. * M_PI) [static] |
const int tSinCosLookupTable::cTABLE_INDEX_MASK = cTABLE_SIZE-1 [static] |
const int tSinCosLookupTable::cTABLE_SIZE = 16384 [static] |
double tSinCosLookupTable::m_cos_table[cTABLE_SIZE] [private] |
double tSinCosLookupTable::m_sin_table[cTABLE_SIZE] [private] |