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

◆ lerp()

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

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

78 {
79 return a + static_cast<fl::i32>(
80 (static_cast<fl::i64>(t) * (b - a)) >> HP_BITS);
81}
fl::i64 i64
Definition s16x16x4.h:222
static constexpr int HP_BITS

References HP_BITS, and fl::t.

Referenced by pnoise2d_raw(), fl::perlin_s16x16_simd::pnoise2d_raw_simd4_vec(), and pnoise3d_raw().

+ Here is the caller graph for this function: