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

◆ clamp()

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

Definition at line 133 of file s12x4.h.

133 {
134 return x < lo ? lo : (x > hi ? hi : x);
135 }

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