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

◆ wrap()

static vec2i16 fl::anonymous_namespace{tile2x2.cpp}::wrap ( const vec2i16 & v,
const vec2i16 & size )
static

Definition at line 14 of file tile2x2.cpp.

14 {
15 // Wrap the vector v around the size
16 return vec2i16(v.x % size.x, v.y % size.y);
17}
vec2< int16_t > vec2i16
Definition geometry.h:320

References wrap(), fl::vec2< T >::x, and fl::vec2< T >::y.

Referenced by wrap().

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