MCPcopy Create free account
hub / github.com/FastLED/FastLED / lerp

Function lerp

src/fl/math/fixed_point.h:536–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534// Linear interpolation: fl::lerp(FP(0.0f), FP(10.0f), FP(0.5f)) → 5.0
535template <typename T>
536inline constexpr typename enable_if<is_fixed_point<T>::value, T>::type
537lerp(T a, T b, T t) FL_NOEXCEPT { return T::lerp(a, b, t); }
538
539// Clamp to range: fl::clamp(FP(5.0f), FP(0.0f), FP(3.0f)) → 3.0
540template <typename T>

Callers 3

lerpMethod · 0.70
constexpr_lerp_checkFunction · 0.50
FL_TEST_FILEFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected