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

◆ addOffset()

void fl::ScreenMap::addOffset ( const vec2f & p)

Definition at line 439 of file screenmap.cpp.

439 {
440 vec2f *data = mLookUpTable->getDataMutable();
441 for (u32 i = 0; i < length; i++) {
442 vec2f &curr = data[i];
443 curr.x += p.x;
444 curr.y += p.y;
445 }
446}
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:103
vec2< float > vec2f
Definition geometry.h:333
value_type x
Definition geometry.h:190

References length, mLookUpTable, fl::vec2< T >::x, and fl::vec2< T >::y.

Referenced by addOffsetX(), and addOffsetY().

+ Here is the caller graph for this function: