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

Method step

src/fl/math/fixed_point.h:355–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353 // step(0.5, 0.3) → 0.0
354 // step(0.5, 0.7) → 1.0
355 static constexpr FASTLED_FORCE_INLINE fixed_point step(fixed_point edge, fixed_point x) FL_NOEXCEPT {
356 return from_raw(Base::step(edge, x).raw());
357 }
358
359 // Smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1.
360 // smoothstep(0.0, 1.0, 0.5) ≈ 0.5

Callers

nothing calls this directly

Calls 2

stepFunction · 0.85
rawMethod · 0.45

Tested by

no test coverage detected