ATLAS Offline Software
SbMath.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef HEPVis_SbMath_h
6 #define HEPVis_SbMath_h
7 
8 #include <cmath>
9 
10 #define SbMinimum(a,b) ((a)<(b)?a:b)
11 #define SbMaximum(a,b) ((a)>(b)?a:b)
12 
13 #define FCOS(x) ((float)cos((double)(x)))
14 #define FSIN(x) ((float)sin((double)(x)))
15 //#define FACOS(x) ((float)acos((double)(x)))
16 // #define FASIN(x) ((float)asin((double)(x)))
17 #define FTAN(x) ((float)tan((double)(x)))
18 #define FATAN(x) ((float)atan((double)(x)))
19 // #define FSQRT(x) ((float)sqrt((double)(x)))
20 // #define FPOW(x,y) ((float)pow((double)(x),(double)(y)))
21 // #define FLOG(x) ((float)log((double)(x)))
22 // #define FLOG10(x) ((float)log10((double)(x)))
23 // #define FFLOOR(x) ((float)floor((double)(x)))
24 #define FFABS(x) ((float)fabs((double)(x)))
25 // #define FCEIL(x) ((float)ceil((double)(x)))
26 
27 #endif