FastLED 3.9.15
Loading...
Searching...
No Matches
fl::WaveSimulation2D_Real Class Reference

Detailed Description

Definition at line 112 of file wave_simulation_real.h.

#include <wave_simulation_real.h>

+ Collaboration diagram for fl::WaveSimulation2D_Real:

Public Member Functions

 WaveSimulation2D_Real (uint32_t W, uint32_t H, float speed=0.16f, float dampening=6.0f)
 
 ~WaveSimulation2D_Real ()=default
 
int getDampenening () const
 
float getf (size_t x, size_t y) const
 
bool getHalfDuplex () const
 
uint32_t getHeight () const
 
int16_t geti16 (size_t x, size_t y) const
 
int16_t geti16Previous (size_t x, size_t y) const
 
int8_t geti8 (size_t x, size_t y) const
 
float getSpeed () const
 
uint8_t getu8 (size_t x, size_t y) const
 
uint32_t getWidth () const
 
bool has (size_t x, size_t y) const
 
void setDampening (int damp)
 
void setf (size_t x, size_t y, float value)
 
void setHalfDuplex (bool on)
 
void seti16 (size_t x, size_t y, int16_t value)
 
void setSpeed (float something)
 
void update ()
 

Private Attributes

fl::scoped_array< int16_t > grid1
 
fl::scoped_array< int16_t > grid2
 
uint32_t height
 
int16_t mCourantSq
 
int mDampening
 
bool mHalfDuplex
 
uint32_t stride
 
size_t whichGrid
 
uint32_t width
 

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