comparison Math.h @ 1214:0d6c7ff3cddd

simplified stru193_math constructor and class definition GAME_STATE_3 to GAME_STATE_LOADING_GAME
author Grumpy7
date Sun, 09 Jun 2013 16:06:12 +0200
parents 71ba92960bc5
children 0aeac0b9ca30
comparison
equal deleted inserted replaced
1213:8192b25d356c 1214:0d6c7ff3cddd
14 int Sin(int angle); 14 int Sin(int angle);
15 15
16 int pTanTable[520]; 16 int pTanTable[520];
17 int pCosTable[520]; 17 int pCosTable[520];
18 int pInvCosTable[520]; 18 int pInvCosTable[520];
19 unsigned int uIntegerPi; 19 static const unsigned int uIntegerPi = 1024;
20 unsigned int uIntegerHalfPi; 20 static const unsigned int uIntegerHalfPi = 512;
21 unsigned int uIntegerDoublePi; 21 static const unsigned int uIntegerDoublePi = 2048;
22 unsigned int uDoublePiMask; 22 static const unsigned int uDoublePiMask = 2047;
23 unsigned int uPiMask; 23 static const unsigned int uPiMask = 1023;
24 unsigned int uHalfPiMask; 24 static const unsigned int uHalfPiMask = 511;
25 }; 25 };
26 #pragma pack(pop) 26 #pragma pack(pop)
27 27
28 28
29 int fixpoint_sub0(int, int); 29 int fixpoint_sub0(int, int);