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

◆ clamp()

template<typename Derived, int IntBits, int FracBits>
static constexpr FASTLED_FORCE_INLINE Derived fl::fixed_point_base< Derived, IntBits, FracBits >::clamp ( Derived x,
Derived lo,
Derived hi )
inlinestaticconstexpr

Definition at line 147 of file base.h.

147 {
148 return x < lo ? lo : (x > hi ? hi : x);
149 }

References FASTLED_FORCE_INLINE, and fl::x.

Referenced by smoothstep().

+ Here is the caller graph for this function: