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

◆ wrap_x()

static vec2i16 fl::anonymous_namespace{tile2x2.cpp}::wrap_x ( const vec2i16 & v,
const uint16_t width )
static

Definition at line 19 of file tile2x2.cpp.

19 {
20 // Wrap the x component of the vector v around the size
21 return vec2i16(v.x % width, v.y);
22}
vec2< int16_t > vec2i16
Definition geometry.h:320

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

Referenced by wrap_x().

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