mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
26 lines
575 B
C++
26 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>
|
||
|
SPROUT_CONSTEXPR inline T pi() {
|
||
|
return 3.141592653589793238462643383279502884197169399375105820974944L;
|
||
|
}
|
||
|
//
|
||
|
// pi_div_two
|
||
|
//
|
||
|
template<typename T>
|
||
|
SPROUT_CONSTEXPR inline T pi_div_two() {
|
||
|
return 1.570796326794896619231321691639751442098584699687552910487472L;
|
||
|
}
|
||
|
} // namespace math
|
||
|
} // namespace sprout
|
||
|
|
||
|
#endif // #ifndef SPROUT_MATH_CONSTANTS_HPP
|