Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
SbMath.h File Reference
#include <cmath>

Go to the source code of this file.

Macros

#define M_PI   3.1415926535897931160E0
 
#define M_PI_2   1.5707963267948965580E0
 
#define SbMinimum(a, b)   ((a)<(b)?a:b)
 
#define SbMaximum(a, b)   ((a)>(b)?a:b)
 
#define FCOS(x)   ((float)cos((double)(x)))
 
#define FSIN(x)   ((float)sin((double)(x)))
 
#define FACOS(x)   ((float)acos((double)(x)))
 
#define FASIN(x)   ((float)asin((double)(x)))
 
#define FTAN(x)   ((float)tan((double)(x)))
 
#define FATAN(x)   ((float)atan((double)(x)))
 
#define FSQRT(x)   ((float)sqrt((double)(x)))
 
#define FPOW(x, y)   ((float)pow((double)(x),(double)(y)))
 
#define FLOG(x)   ((float)log((double)(x)))
 
#define FLOG10(x)   ((float)log10((double)(x)))
 
#define FFLOOR(x)   ((float)floor((double)(x)))
 
#define FFABS(x)   ((float)fabs((double)(x)))
 
#define FCEIL(x)   ((float)ceil((double)(x)))
 

Macro Definition Documentation

◆ FACOS

#define FACOS (   x)    ((float)acos((double)(x)))

Definition at line 42 of file SbMath.h.

◆ FASIN

#define FASIN (   x)    ((float)asin((double)(x)))

Definition at line 43 of file SbMath.h.

◆ FATAN

#define FATAN (   x)    ((float)atan((double)(x)))

Definition at line 45 of file SbMath.h.

◆ FCEIL

#define FCEIL (   x)    ((float)ceil((double)(x)))

Definition at line 52 of file SbMath.h.

◆ FCOS

#define FCOS (   x)    ((float)cos((double)(x)))

Definition at line 40 of file SbMath.h.

◆ FFABS

#define FFABS (   x)    ((float)fabs((double)(x)))

Definition at line 51 of file SbMath.h.

◆ FFLOOR

#define FFLOOR (   x)    ((float)floor((double)(x)))

Definition at line 50 of file SbMath.h.

◆ FLOG

#define FLOG (   x)    ((float)log((double)(x)))

Definition at line 48 of file SbMath.h.

◆ FLOG10

#define FLOG10 (   x)    ((float)log10((double)(x)))

Definition at line 49 of file SbMath.h.

◆ FPOW

#define FPOW (   x,
 
)    ((float)pow((double)(x),(double)(y)))

Definition at line 47 of file SbMath.h.

◆ FSIN

#define FSIN (   x)    ((float)sin((double)(x)))

Definition at line 41 of file SbMath.h.

◆ FSQRT

#define FSQRT (   x)    ((float)sqrt((double)(x)))

Definition at line 46 of file SbMath.h.

◆ FTAN

#define FTAN (   x)    ((float)tan((double)(x)))

Definition at line 44 of file SbMath.h.

◆ M_PI

#define M_PI   3.1415926535897931160E0

Definition at line 33 of file SbMath.h.

◆ M_PI_2

#define M_PI_2   1.5707963267948965580E0

Definition at line 34 of file SbMath.h.

◆ SbMaximum

#define SbMaximum (   a,
 
)    ((a)>(b)?a:b)

Definition at line 38 of file SbMath.h.

◆ SbMinimum

#define SbMinimum (   a,
 
)    ((a)<(b)?a:b)

Definition at line 37 of file SbMath.h.