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

Function smoothstep

src/fl/math/fixed_point.h:551–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549// Smooth Hermite interpolation: fl::smoothstep(FP(0.0f), FP(1.0f), FP(0.5f)) ≈ 0.5
550template <typename T>
551inline typename enable_if<is_fixed_point<T>::value, T>::type
552smoothstep(T edge0, T edge1, T x) FL_NOEXCEPT { return T::smoothstep(edge0, edge1, x); }
553
554// ---- Roots / powers ----
555

Callers 5

smoothstepMethod · 0.85
test_smoothstep_implFunction · 0.85
measure_smoothstepFunction · 0.85
measure_smoothstep_tFunction · 0.85
FL_TEST_FILEFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_smoothstep_implFunction · 0.68