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