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

◆ access() [1/2]

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

Definition at line 69 of file grid.h.

69 {
70 if (x < mWidth && y < mHeight) {
71 return mSlice.at(x, y);
72 } else {
73 return NullValue(); // safe.
74 }
75 }
uint32_t mHeight
Definition grid.h:85
static T & NullValue()
Definition grid.h:65
uint32_t mWidth
Definition grid.h:84
fl::MatrixSlice< T > mSlice
Definition grid.h:86
Definition grid.h:9

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

Referenced by at(), and at().

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