00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef PFIELD_CONFIG_H_
00012 #define PFIELD_CONFIG_H_
00013
00014
00015
00016 #define POTENTIALFIELDS_FOR_GT2004_
00017
00018
00019
00020 #ifdef _MSC_VER
00021 #pragma warning (disable: 4786)
00022 #endif
00023
00024
00025
00026 #ifdef POTENTIALFIELDS_FOR_GT2004_
00027 #include "Platform/SystemCall.h"
00028 #include "Tools/Math/Common.h"
00029 #else
00030
00031 const double pi = 3.1415926535897932384626433832795;
00032
00033 const double pi2 = 2.0*3.1415926535897932384626433832795;
00034
00035 const double pi3_2 = 1.5*3.1415926535897932384626433832795;
00036
00037 const double pi_2 = 0.5*3.1415926535897932384626433832795;
00038
00039 const double pi_180 = 3.1415926535897932384626433832795/180;
00040
00041 const double pi_4 = 3.1415926535897932384626433832795*0.25;
00042
00043 const double pi3_4 = 3.1415926535897932384626433832795*0.75;
00044 #endif //POTENTIALFIELDS_FOR_GT2004_
00045
00046
00047
00048 static unsigned long getSystemTime()
00049 {
00050 #ifdef POTENTIALFIELDS_FOR_GT2004_
00051 return SystemCall::getCurrentSystemTime();
00052 #else
00053 return 0;
00054 #endif //POTENTIALFIELDS_FOR_GT2004_
00055 }
00056
00057
00058 #endif //PFIELD_CONFIG_H_
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079