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

◆ access() [1/2]

template<typename T>
T & fl::Grid< T >::access ( u32 x,
u32 y )
inlineprivate

Definition at line 74 of file grid.h.

74 {
75 if (x < mWidth && y < mHeight) {
76 return mSlice.at(x, y);
77 } else {
78 return NullValue(); // safe.
79 }
80 }
static T & NullValue()
Definition grid.h:70
fl::MatrixSlice< T > mSlice
Definition grid.h:91
u32 mHeight
Definition grid.h:90
u32 mWidth
Definition grid.h:89

References mHeight, mSlice, mWidth, NullValue(), fl::x, and fl::y.

Referenced by at(), and at().

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