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

◆ lerp()

fl::i32 fl::perlin_s16x16::lerp ( fl::i32 t,
fl::i32 a,
fl::i32 b )
static

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

79 {
80 return a + static_cast<fl::i32>(
81 (static_cast<fl::i64>(t) * (b - a)) >> HP_BITS);
82}
static constexpr int HP_BITS

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

Referenced by fl::perlin_s16x16_simd::pnoise2d_raw_simd4_vec().

+ Here is the caller graph for this function: