FastLED 3.10.8
Loading...
Searching...
No Matches

◆ at_no_wrap()

vec2f fl::Corkscrew::at_no_wrap ( fl::u16 i) const

Definition at line 99 of file corkscrew.cpp.hpp.

99 {
100 if (i >= mNumLeds) {
101 // Handle out-of-bounds access, possibly by returning a default value
102 return vec2f(0, 0);
103 }
104
105 // Compute position on-the-fly
108
109 // // Apply inversion if requested
110 // if (mInvert) {
111 // fl::u16 invertedIndex = mNumLeds - 1 - i;
112 // position = calculateLedPositionExtended(invertedIndex, mNumLeds, mTotalTurns,
113 // mGapParams, mState.width, mState.height);
114 // }
115
116 // now wrap the x-position
117 //position.x = fl::fmodf(position.x, static_cast<float>(mState.width));
118
119 return position;
120}
fl::u16 mWidth
Definition corkscrew.h:228
fl::u16 mNumLeds
Definition corkscrew.h:223
float mTotalTurns
Definition corkscrew.h:222
fl::u16 mHeight
Definition corkscrew.h:229
vec2f calculateLedPositionExtended(fl::u16 ledIndex, fl::u16 numLeds, float totalTurns, const Gap &gapParams, fl::u16 width, fl::u16 height) FL_NO_EXCEPT
vec2< float > vec2f
Definition geometry.h:333

References fl::FL_NO_EXCEPT, mGapParams, mHeight, mNumLeds, mTotalTurns, and mWidth.

Referenced by at_exact(), at_splat_extrapolate(), draw(), and readFrom().

+ Here is the caller graph for this function: