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

◆ clamp()

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

Definition at line 145 of file u4x12.h.

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

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