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

◆ lerp()

FASTLED_FORCE_INLINE fl::i32 fl::perlin_q16::lerp ( fl::i32 t,
fl::i32 a,
fl::i32 b )
staticprivate

Definition at line 80 of file perlin_q16.cpp.hpp.

80 {
81 // All values in Q16, result stays Q16
82 return a + static_cast<fl::i32>(
83 (static_cast<fl::i64>(t) * (b - a)) >> HP_BITS);
84}
fl::i64 i64
Definition s16x16x4.h:222
static constexpr int HP_BITS
Definition perlin_q16.h:15

References FASTLED_FORCE_INLINE, HP_BITS, and fl::t.

Referenced by pnoise2d_raw().

+ Here is the caller graph for this function: