FastLED 3.10.8
Loading...
Searching...
No Matches

◆ clamp()

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

Definition at line 188 of file s16x16.h.

188 {
189 return x < lo ? lo : (x > hi ? hi : x);
190 }

References s16x16(), FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, 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: