MCPcopy Create free account
hub / github.com/FastLED/FastLED / at_exact

Method at_exact

src/fl/gfx/corkscrew.cpp.hpp:121–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121vec2f Corkscrew::at_exact(fl::u16 i) const {
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 = fl::fmodf(position.x, static_cast<float>(mWidth));
127
128 return position;
129}
130
131
132Tile2x2_u8 Corkscrew::at_splat_extrapolate(float i) const {

Callers 1

FL_TEST_FILEFunction · 0.80

Calls 1

fmodfFunction · 0.85

Tested by

no test coverage detected