OpenMEEG
constants.h
Go to the documentation of this file.
1 // Project Name: OpenMEEG (http://openmeeg.github.io)
2 // © INRIA and ENPC under the French open source license CeCILL-B.
3 // See full copyright notice in the file LICENSE.txt
4 // If you make a copy of this file, you must either:
5 // - provide also LICENSE.txt and modify this header to refer to it.
6 // - replace this header by the LICENSE.txt content.
7 
8 #pragma once
9 
10 #ifdef WIN32
11 #define _USE_MATH_DEFINES
12 #endif
13 
14 #include <cmath>
15 
16 #ifndef M_PI
17 constexpr double Pi = 3.14159265358979323846;
18 #else
19 constexpr double Pi = M_PI;
20 #endif
21 
22 constexpr double MagFactor = 1e-7;
23 constexpr double K = 1.0/(4*Pi);
constexpr double K
Definition: constants.h:23
constexpr double Pi
Definition: constants.h:17
constexpr double MagFactor
Definition: constants.h:22