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

◆ clamp()

static constexpr FASTLED_FORCE_INLINE s8x24 fl::s8x24::clamp ( s8x24 x,
s8x24 lo,
s8x24 hi )
inlinestaticconstexpr

Definition at line 143 of file s8x24.h.

143 {
144 return x < lo ? lo : (x > hi ? hi : x);
145 }

References s8x24(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, and fl::x.

Referenced by smoothstep().

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