00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef FTFGENERAL
00011 #define FTFGENERAL
00012
00013 #include "Stl3Util/base/FtfLog.h"
00014
00015
00016 #include <math.h>
00017 #include <stdio.h>
00018 #include <stdlib.h>
00019 #include <algorithm>
00020
00021
00022
00023 using namespace std;
00024 using std::min;
00025 using std::max;
00026
00027
00028
00029
00030 const float toDeg =57.29577951F ;
00031 const float pi =3.141592654F ;
00032 const float twoPi =2.F*pi ;
00033 const float piHalf = 0.5 * pi ;
00034 const double bFactor = 0.0029979 ;
00035
00036
00037
00038
00039
00040 #define seta(r,z) (float)(3.0F * (z) / (fabs(z)+2.0F*(r)))
00041 #define reta(eta,r) ((2.F*(r)*eta / ( 3 - fabs(eta)) ))
00042 #define sgn(a) (float)( ( (a) > 0 ) ? (1) :(-1) )
00043 #define square(a) (float)( (a) * (a) )
00044
00045
00046
00047
00048
00049
00050
00051
00052 class FtfContainer{
00053 public:
00054 void *first;
00055 void *last;
00056 } ;
00057
00058
00059 #endif
00060
00061
00062