FastLED 3.10.8
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 84 of file perlin_i16_optimized.cpp.hpp.

84 {
85 return a + static_cast<fl::i32>(
86 (static_cast<fl::i64>(t) * (b - a)) >> HP_BITS);
87}
static constexpr int HP_BITS

References FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, HP_BITS, and fl::t.