Go to the documentation of this file.
29 #ifndef HEPVis_SbMath_h
30 #define HEPVis_SbMath_h
34 #define M_PI 3.1415926535897931160E0
35 #define M_PI_2 1.5707963267948965580E0
38 #define SbMinimum(a,b) ((a)<(b)?a:b)
39 #define SbMaximum(a,b) ((a)>(b)?a:b)
41 #define FCOS(x) ((float)cos((double)(x)))
42 #define FSIN(x) ((float)sin((double)(x)))
43 #define FACOS(x) ((float)acos((double)(x)))
44 #define FASIN(x) ((float)asin((double)(x)))
45 #define FTAN(x) ((float)tan((double)(x)))
46 #define FATAN(x) ((float)atan((double)(x)))
47 #define FSQRT(x) ((float)sqrt((double)(x)))
48 #define FPOW(x,y) ((float)pow((double)(x),(double)(y)))
49 #define FLOG(x) ((float)log((double)(x)))
50 #define FLOG10(x) ((float)log10((double)(x)))
51 #define FFLOOR(x) ((float)floor((double)(x)))
52 #define FFABS(x) ((float)fabs((double)(x)))
53 #define FCEIL(x) ((float)ceil((double)(x)))