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

Function almost_equal

src/fl/math/math.h:90–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89template <typename T, typename U>
90constexpr inline bool almost_equal(T a, T b, U tolerance) FL_NOEXCEPT {
91 return fl::abs(a - b) < tolerance;
92}
93
94inline bool almost_equal(float a, float b) FL_NOEXCEPT {
95 return fl::abs(a - b) < FL_EPSILON_F;

Callers 15

at_splat_extrapolateMethod · 0.85
istream.cpp.hppFile · 0.85
value_normalizedMethod · 0.85
equalsFunction · 0.85
setValueMethod · 0.85
operator==Method · 0.85
operator!=Method · 0.85
JsonUiSliderInternalMethod · 0.85
value_normalizedMethod · 0.85
FL_TEST_FILEFunction · 0.85
FL_TEST_FILEFunction · 0.85

Calls 1

absFunction · 0.70

Tested by

no test coverage detected