2012-02-25 14:59:46 +00:00
|
|
|
#ifndef SPROUT_MATH_CONSTANTS_HPP
|
|
|
|
#define SPROUT_MATH_CONSTANTS_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
namespace math {
|
|
|
|
//
|
|
|
|
// pi
|
|
|
|
//
|
|
|
|
template<typename T>
|
2012-04-04 13:23:41 +00:00
|
|
|
inline SPROUT_CONSTEXPR T pi() {
|
2012-02-25 14:59:46 +00:00
|
|
|
return 3.141592653589793238462643383279502884197169399375105820974944L;
|
|
|
|
}
|
|
|
|
//
|
|
|
|
// pi_div_two
|
|
|
|
//
|
|
|
|
template<typename T>
|
2012-04-04 13:23:41 +00:00
|
|
|
inline SPROUT_CONSTEXPR T pi_div_two() {
|
2012-02-25 14:59:46 +00:00
|
|
|
return 1.570796326794896619231321691639751442098584699687552910487472L;
|
|
|
|
}
|
|
|
|
} // namespace math
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_MATH_CONSTANTS_HPP
|