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

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

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

+ Here is the call graph for this function: