123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef FASTMATHINCLUDE
- #define FASTMATHINCLUDE
- namespace NICE {
- class FastMath
- {
- public:
-
- static const int gradientMaximum = 255;
-
- static const int sqrtTableMaximum = 2*gradientMaximum*gradientMaximum+1;
-
- double *sqrtTable;
-
- static const int atan2TableMaximum = (2*gradientMaximum+1)*(2*gradientMaximum+1);
-
- double *atan2Table;
-
-
- FastMath ();
-
-
- ~FastMath ();
-
- static FastMath & getSingleton () {
- static FastMath fastMathSingleton;
- return fastMathSingleton;
- }
-
- };
- }
- #endif
|