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

◆ at_exact()

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

Definition at line 121 of file corkscrew.cpp.

121 {
122 // Get the unwrapped position
123 vec2f position = at_no_wrap(i);
124
125 // Apply cylindrical wrapping to the x-position (like at_wrap does)
126 position.x = fmodf(position.x, static_cast<float>(mWidth));
127
128 return position;
129}
fl::u16 mWidth
Definition corkscrew.h:235
vec2f at_no_wrap(fl::u16 i) const
Definition corkscrew.cpp:98
vec2< float > vec2f
Definition geometry.h:333

References at_no_wrap(), mWidth, and fl::vec2< T >::x.

Referenced by toScreenMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: