comparison Engine/OurMath.cpp @ 2534:1bcadc6dd203

enum SOUND_
author Ritor1
date Mon, 09 Feb 2015 19:17:12 +0600
parents 68cdef6879a0
children
comparison
equal deleted inserted replaced
2533:2baaac65d5bf 2534:1bcadc6dd203
13 this->pTanTable[0] = 0; 13 this->pTanTable[0] = 0;
14 this->pCosTable[0] = 65536; 14 this->pCosTable[0] = 65536;
15 this->pInvCosTable[0] = 65536; 15 this->pInvCosTable[0] = 65536;
16 for(int i = 1; i < (signed int)this->uIntegerHalfPi; i++) 16 for(int i = 1; i < (signed int)this->uIntegerHalfPi; i++)
17 { 17 {
18 v3 = (double)i * 3.141592653589793 / (double)uIntegerPi; 18 v3 = (double)i * pi_double / (double)uIntegerPi;
19 pTanTable[i] = (signed __int64)(tan(v3) * (double)this->pCosTable[0] + 0.5); 19 pTanTable[i] = (signed __int64)(tan(v3) * (double)this->pCosTable[0] + 0.5);
20 pCosTable[i] = (signed __int64)(cos(v3) * (double)this->pCosTable[0] + 0.5); 20 pCosTable[i] = (signed __int64)(cos(v3) * (double)this->pCosTable[0] + 0.5);
21 pInvCosTable[i] = (signed __int64)(1.0 / cos(v3) * (double)this->pCosTable[0] + 0.5); 21 pInvCosTable[i] = (signed __int64)(1.0 / cos(v3) * (double)this->pCosTable[0] + 0.5);
22 } 22 }
23 for(int i = this->uIntegerHalfPi; i < 520; i++) 23 for(int i = this->uIntegerHalfPi; i < 520; i++)