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 145 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, int32_t dataWidth, int32_t dataHeight, int32_t bottomLeftX, int32_t bottomLeftY, int32_t topRightX, int32_t topRightY)
 
T & at (int32_t x, int32_t y)
 
const T & at (int32_t x, int32_t y) const
 
vec2< int32_t > getLocalCoord (int32_t x_world, int32_t y_world) const
 
vec2< int32_t > getParentCoord (int32_t x_local, int32_t y_local) const
 
T & operator() (int32_t x, int32_t y)
 
MatrixSliceoperator= (const MatrixSlice &other)=default
 
T * operator[] (int32_t row)
 

Private Attributes

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

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