| 671 | |
| 672 | template<typename T> |
| 673 | void test_atan2_impl(float atan2_max) { |
| 674 | FL_CHECK_CLOSE(T::atan2(T(1.0f), T(1.0f)).to_float(), 0.7854f, atan2_max); |
| 675 | FL_CHECK_CLOSE(T::atan2(T(0.0f), T(1.0f)).to_float(), 0.0f, atan2_max); |
| 676 | FL_CHECK_CLOSE(T::atan2(T(1.0f), T(0.0f)).to_float(), 1.5708f, atan2_max); |
| 677 | } |
| 678 | |
| 679 | template<typename T> |
| 680 | void test_asin_impl(float asin_max) { |