FastLED 3.9.15
Loading...
Searching...
No Matches
fl::MatrixSlice< T > Class Template Reference

Detailed Description

template<typename T>
class fl::MatrixSlice< T >

Definition at line 197 of file slice.h.

#include <slice.h>

+ Inheritance diagram for fl::MatrixSlice< T >:
+ Collaboration diagram for fl::MatrixSlice< T >:

Public Member Functions

 MatrixSlice ()=default
 
 MatrixSlice (const MatrixSlice &other)=default
 
 MatrixSlice (T *data, i32 dataWidth, i32 dataHeight, i32 bottomLeftX, i32 bottomLeftY, i32 topRightX, i32 topRightY)
 
T & at (i32 x, i32 y)
 
const T & at (i32 x, i32 y) const
 
vec2< i32 > getLocalCoord (i32 x_world, i32 y_world) const
 
vec2< i32 > getParentCoord (i32 x_local, i32 y_local) const
 
T & operator() (i32 x, i32 y)
 
MatrixSliceoperator= (const MatrixSlice &other)=default
 
T * operator[] (i32 row)
 

Private Attributes

vec2< i32 > mBottomLeft
 
T * mData = nullptr
 
i32 mDataHeight = 0
 
i32 mDataWidth = 0
 
vec2< i32 > mTopRight
 

The documentation for this class was generated from the following file: