FastLED 3.9.15
Loading...
Searching...
No Matches

◆ almost_equal() [3/3]

template<typename T, typename U>
bool fl::almost_equal ( T a,
T b,
U tolerance )
inlineconstexpr

Definition at line 90 of file math.h.

90 {
91 return fl::abs(a - b) < tolerance;
92}
constexpr enable_if< is_fixed_point< T >::value, T >::type abs(T x) FL_NOEXCEPT

References abs(), and FL_NOEXCEPT.

Referenced by fl::Corkscrew::at_splat_extrapolate(), FL_DISABLE_WARNING(), fl::istream_real::operator>>(), fl::istream_real::operator>>(), and fl::UISlider::value_normalized().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: