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

◆ clamp()

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

Definition at line 144 of file s4x12.h.

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

References s4x12(), 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: