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

Method smoothstep

src/fl/math/fixed_point.h:363–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361 // smoothstep(0.0, 1.0, 0.0) → 0.0
362 // smoothstep(0.0, 1.0, 1.0) → 1.0
363 static FASTLED_FORCE_INLINE fixed_point smoothstep(fixed_point edge0, fixed_point edge1, fixed_point x) FL_NOEXCEPT {
364 return from_raw(Base::smoothstep(edge0, edge1, x).raw());
365 }
366
367 // Component-wise minimum: min(3.0, 1.5) → 1.5
368 static constexpr FASTLED_FORCE_INLINE fixed_point min(fixed_point a, fixed_point b) FL_NOEXCEPT {

Callers

nothing calls this directly

Calls 2

smoothstepFunction · 0.85
rawMethod · 0.45

Tested by

no test coverage detected