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

◆ lerp()

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

Definition at line 83 of file perlin_i16_optimized.cpp.hpp.

83 {
84 return a + static_cast<fl::i32>(
85 (static_cast<fl::i64>(t) * (b - a)) >> HP_BITS);
86}
fl::i64 i64
Definition s16x16x4.h:222
static constexpr int HP_BITS

References FASTLED_FORCE_INLINE, HP_BITS, and fl::t.

Referenced by pnoise2d_raw().

+ Here is the caller graph for this function: