MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_atan2_impl

Function test_atan2_impl

tests/fl/math/fixed_point.cpp:673–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671
672template<typename T>
673void 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
679template<typename T>
680void test_asin_impl(float asin_max) {

Callers

nothing calls this directly

Calls 3

TEnum · 0.85
atan2Function · 0.50
to_floatMethod · 0.45

Tested by

no test coverage detected