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

◆ smoothstep()

static FASTLED_FORCE_INLINE u8x24 fl::u8x24::smoothstep ( u8x24 edge0,
u8x24 edge1,
u8x24 x )
inlinestatic

Definition at line 149 of file u8x24.h.

149 {
150 constexpr u8x24 zero(0.0f);
151 constexpr u8x24 one(1.0f);
152 constexpr u8x24 two(2.0f);
153 constexpr u8x24 three(3.0f);
154 u8x24 t = clamp((x - edge0) / (edge1 - edge0), zero, one);
155 return t * t * (three - two * t);
156 }
constexpr u8x24() FL_NOEXCEPT=default
static constexpr FASTLED_FORCE_INLINE u8x24 clamp(u8x24 x, u8x24 lo, u8x24 hi) FL_NOEXCEPT
Definition u8x24.h:141

References u8x24(), clamp(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, fl::t, and fl::x.

+ Here is the call graph for this function: