mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
c6bd230ee4
add container/indexes.hpp add tuple/indexes.hpp
25 lines
575 B
C++
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
|