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

Function test_atan_impl

tests/fl/math/fixed_point.cpp:666–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664
665template<typename T>
666void test_atan_impl(float atan_max) {
667 FL_CHECK_CLOSE(T::atan(T(1.0f)).to_float(), 0.7854f, atan_max);
668 FL_CHECK_CLOSE(T::atan(T(0.0f)).to_float(), 0.0f, atan_max);
669 FL_CHECK_CLOSE(T::atan(T(-1.0f)).to_float(), -0.7854f, atan_max);
670}
671
672template<typename T>
673void test_atan2_impl(float atan2_max) {

Callers

nothing calls this directly

Calls 3

atanFunction · 0.85
TEnum · 0.85
to_floatMethod · 0.45

Tested by

no test coverage detected