FastLED 3.9.15
Loading...
Searching...
No Matches

◆ calculateCorkscrewHeight()

fl::u16 fl::calculateCorkscrewHeight ( float totalTurns,
fl::u16 numLeds )
constexpr

Definition at line 57 of file corkscrew.h.

57 {
58 return (calculateCorkscrewWidth(totalTurns, numLeds) * static_cast<int>(ceil_constexpr(totalTurns)) > numLeds) ?
59 static_cast<fl::u16>(ceil_constexpr(static_cast<float>(numLeds) / static_cast<float>(calculateCorkscrewWidth(totalTurns, numLeds)))) :
60 static_cast<fl::u16>(ceil_constexpr(totalTurns));
61}
constexpr int ceil_constexpr(float value)
Definition math.h:72
constexpr fl::u16 calculateCorkscrewWidth(float totalTurns, fl::u16 numLeds)
Definition corkscrew.h:53
IMPORTANT!
Definition crgb.h:20

References calculateCorkscrewWidth(), and ceil_constexpr().

+ Here is the call graph for this function: