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

◆ at_exact()

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

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

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

References at_no_wrap(), fl::FL_NO_EXCEPT, fl::fmodf(), 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: