Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Math.h

Go to the documentation of this file.
00001 #ifndef Impala_Util_Math_h
00002 #define Impala_Util_Math_h
00003 
00004 // Wrapper file around math.h.
00005 
00006 #include <cmath>
00007 #include <cstdlib>    // for integer abs
00008 #include <cfloat>
00009 
00010 #ifndef M_PI
00011 #define M_PI 3.14159265358979323846
00012 #endif
00013 
00014 //const double sq2pi = (sqrt(2.*M_PI));
00015 
00016 namespace Impala
00017 {
00018 
00019 
00020 template<class T>
00021 inline bool
00022 IsNan(T x)
00023 {
00024 #ifdef WIN32
00025     return _isnan(x) ? true : false;
00026 #else
00027     return isnan(x) ? true : false;
00028 #endif
00029 }
00030 
00031 } // namespace Impala
00032 
00033 #endif

Generated on Fri Mar 19 09:31:47 2010 for ImpalaSrc by  doxygen 1.5.1