FastLED 3.10.6
Loading...
Searching...
No Matches

◆ addOffset()

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

Definition at line 747 of file screenmap.cpp.hpp.

747 {
748 vec2f *data = mLookUpTable->getDataMutable();
749 for (u32 i = 0; i < length; i++) {
750 vec2f &curr = data[i];
751 curr.x += p.x;
752 curr.y += p.y;
753 }
754}
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:143
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: