| 742 | |
| 743 | template<typename T> |
| 744 | void test_smoothstep_impl(float smoothstep_max) { |
| 745 | FL_CHECK_CLOSE(T::smoothstep(T(0.0f), T(1.0f), T(-0.5f)).to_float(), 0.0f, smoothstep_max); |
| 746 | FL_CHECK_CLOSE(T::smoothstep(T(0.0f), T(1.0f), T(1.5f)).to_float(), 1.0f, smoothstep_max); |
| 747 | FL_CHECK_CLOSE(T::smoothstep(T(0.0f), T(1.0f), T(0.5f)).to_float(), 0.5f, smoothstep_max); |
| 748 | } |
| 749 | |
| 750 | template<typename T> |
| 751 | void test_to_float_impl(float epsilon, float epsilon_large) { |
nothing calls this directly
no test coverage detected