Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

pi.h

Go to the documentation of this file.
00001 #ifndef fl_pi_h
00002 #define fl_pi_h
00003 
00004 
00005 #include <math.h>
00006 
00007 #define PI 3.1415926535897932384626433832795029
00008 
00009 
00010 inline double
00011 mod2pi (double a)
00012 {
00013   a = fmod (a, 2.0 * PI);
00014   if (a < 0)
00015   {
00016         a += 2.0 * PI;
00017   }
00018   return a;
00019 }
00020 
00021 inline float
00022 mod2pi (float a)
00023 {
00024   a = fmodf (a, 2.0 * PI);
00025   if (a < 0)
00026   {
00027         a += 2.0 * PI;
00028   }
00029   return a;
00030 }
00031 
00032 
00033 #endif

Generated on Thu Dec 9 17:13:25 2004 for fl by doxygen1.2.18