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

Function constexpr_lerp_check

tests/fl/math/fixed_point.cpp:940–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938// Helper: Verify lerp is constexpr
939template <typename T>
940constexpr bool constexpr_lerp_check(float a, float b, float t) {
941 return T::lerp(T(a), T(b), T(t)).raw() == T::lerp(T(a), T(b), T(t)).raw();
942}
943
944// Helper: Verify clamp is constexpr
945template <typename T>

Callers

nothing calls this directly

Calls 3

TEnum · 0.85
lerpFunction · 0.50
rawMethod · 0.45

Tested by

no test coverage detected