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

◆ lerp()

FASTLED_FORCE_INLINE s16x16x4 fl::s16x16x4::lerp ( s16x16x4 b,
s16x16 t ) const
inline

Linear interpolation: a + (b - a) * t (using Q16 multiply) t: s16x16 interpolation factor in [0, 1].

Definition at line 110 of file s16x16x4.h.

110 {
111 auto t_vec = s16x16x4::set1(t);
112 auto diff = b - (*this);
113 return (*this) + (diff * t_vec);
114 }
static FASTLED_FORCE_INLINE s16x16x4 set1(s16x16 value)
Definition s16x16x4.h:45

References FASTLED_FORCE_INLINE, set1(), and fl::t.

+ Here is the call graph for this function: