| 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 |