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

Function step

src/fl/math/fixed_point.h:546–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544// Step: fl::step(FP(0.5f), FP(0.7f)) → 1.0
545template <typename T>
546inline constexpr typename enable_if<is_fixed_point<T>::value, T>::type
547step(T edge, T x) FL_NOEXCEPT { return T::step(edge, x); }
548
549// Smooth Hermite interpolation: fl::smoothstep(FP(0.0f), FP(1.0f), FP(0.5f)) ≈ 0.5
550template <typename T>

Callers 3

stepMethod · 0.85
constexpr_step_checkFunction · 0.85
FL_TEST_FILEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected