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

◆ access() [1/2]

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

Definition at line 72 of file grid.h.

72 {
73 if (x < mWidth && y < mHeight) {
74 return mSlice.at(x, y);
75 } else {
76 return NullValue(); // safe.
77 }
78 }
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.

Referenced by at(), and at().

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