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

◆ lerp()

FASTLED_FORCE_INLINE fl::i16 fl::perlin_s8x8::lerp ( fl::i16 t,
fl::i16 a,
fl::i16 b )
staticprivate

Definition at line 79 of file perlin_s8x8.cpp.hpp.

79 {
80 // All values in Q8, result stays Q8
81 return static_cast<fl::i16>(
82 a + (((static_cast<fl::i32>(t) * (b - a)) >> HP_BITS)));
83}
static constexpr int HP_BITS
Definition perlin_s8x8.h:15

References FASTLED_FORCE_INLINE, HP_BITS, and fl::t.

Referenced by pnoise2d_raw().

+ Here is the caller graph for this function: