mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
add sprout::atan
This commit is contained in:
parent
1417a8acd2
commit
8c23e809a4
6 changed files with 96 additions and 5 deletions
|
@ -13,13 +13,20 @@ namespace sprout {
|
|||
return 3.141592653589793238462643383279502884197169399375105820974944L;
|
||||
}
|
||||
//
|
||||
// pi_div_two
|
||||
// half_pi
|
||||
//
|
||||
template<typename T>
|
||||
inline SPROUT_CONSTEXPR T pi_div_two() {
|
||||
inline SPROUT_CONSTEXPR T half_pi() {
|
||||
return 1.570796326794896619231321691639751442098584699687552910487472L;
|
||||
}
|
||||
//
|
||||
// quarter_pi
|
||||
//
|
||||
template<typename T>
|
||||
inline SPROUT_CONSTEXPR T quarter_pi() {
|
||||
return 0.785398163397448309615660845819875721049292349843776455243736L;
|
||||
}
|
||||
//
|
||||
// root_two
|
||||
//
|
||||
template<typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue