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

◆ at()

vec2f fl::Corkscrew::at ( uint16_t i) const

Definition at line 110 of file corkscrew.cpp.

110 {
111 if (i >= mOutput.mapping.size()) {
112 // Handle out-of-bounds access, possibly by returning a default value
113 return vec2f(0, 0);
114 }
115 // Convert the float position to integer
116 const vec2f &position = mOutput.mapping[i];
117 return position;
118}
CorkscrewOutput mOutput
Definition corkscrew.h:154
vec2< float > vec2f
Definition geometry.h:318

References mOutput.