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

68 {
69 if (x < mWidth && y < mHeight) {
70 return mSlice.at(x, y);
71 } else {
72 return NullValue(); // safe.
73 }
74 }
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.

Referenced by at(), and at().

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