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 75 of file grid.h.

75 {
76 if (x < mWidth && y < mHeight) {
77 return mSlice.at(x, y);
78 } else {
79 return NullValue(); // safe.
80 }
81 }
uint32_t mHeight
Definition grid.h:84
static T & NullValue()
Definition grid.h:64
uint32_t mWidth
Definition grid.h:83
fl::MatrixSlice< T > mSlice
Definition grid.h:85
Definition grid.h:9

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

+ Here is the call graph for this function: