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

◆ access() [2/2]

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

Definition at line 76 of file grid.h.

76 {
77 if (x < mWidth && y < mHeight) {
78 return mSlice.at(x, y);
79 } else {
80 return NullValue(); // safe.
81 }
82 }
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.

+ Here is the call graph for this function: