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

◆ clamp()

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

Definition at line 162 of file s16x16.h.

162 {
163 return x < lo ? lo : (x > hi ? hi : x);
164 }

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

Referenced by fl::FlowFieldFP::drawDot(), fl::FlowFieldFP::flowPrepare(), fl::FlowFieldFP::rainbow(), and smoothstep().

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