1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/sprout/math/constants.hpp
bolero-MURAKAMI c6bd230ee4 fix inline
add container/indexes.hpp
add tuple/indexes.hpp
2012-04-04 22:23:41 +09:00

25 lines
575 B
C++

#ifndef SPROUT_MATH_CONSTANTS_HPP
#define SPROUT_MATH_CONSTANTS_HPP
#include <sprout/config.hpp>
namespace sprout {
namespace math {
//
// pi
//
template<typename T>
inline SPROUT_CONSTEXPR T pi() {
return 3.141592653589793238462643383279502884197169399375105820974944L;
}
//
// pi_div_two
//
template<typename T>
inline SPROUT_CONSTEXPR T pi_div_two() {
return 1.570796326794896619231321691639751442098584699687552910487472L;
}
} // namespace math
} // namespace sprout
#endif // #ifndef SPROUT_MATH_CONSTANTS_HPP