1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add sprout::atan

This commit is contained in:
bolero-MURAKAMI 2012-05-04 22:13:17 +09:00
parent 1417a8acd2
commit 8c23e809a4
6 changed files with 96 additions and 5 deletions

View file

@ -19,7 +19,7 @@ namespace sprout {
>
inline SPROUT_CONSTEXPR FloatType
sin(FloatType x) {
return -sprout::math::detail::cos(x + sprout::math::pi_div_two<FloatType>());
return -sprout::math::detail::cos(x + sprout::math::half_pi<FloatType>());
}
template<