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

◆ access() [2/2]

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

Definition at line 79 of file grid.h.

79 {
80 if (x < mWidth && y < mHeight) {
81 return mSlice.at(x, y);
82 } else {
83 return NullValue(); // safe.
84 }
85 }
static T & NullValue()
Definition grid.h:68
fl::MatrixSlice< T > mSlice
Definition grid.h:89
u32 mHeight
Definition grid.h:88
u32 mWidth
Definition grid.h:87

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

+ Here is the call graph for this function: