General: reorganization of header files
[marnav.git] / include / marnav / math / constants.hpp
blobd5719555bf22b1b7e4cc2e79123517912d8aa168
1 #ifndef MARNAV__MATH__CONSTATNS__HPP
2 #define MARNAV__MATH__CONSTATNS__HPP
4 namespace marnav
6 namespace math
8 /// M_PI is not defined by either the C or C++ standard.
9 /// One solution would be to use `_USE_MATH_DEFINES`,
10 /// another to define it ourselfs, either as constant or
11 /// `std::atan(-1.0)*4` or `std::acos(-1.0)`.
12 ///
13 /// @todo This should be a variable template (>=C++14)
14 constexpr double pi = 3.141592653589793238463L;
18 #endif