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

Detailed Description

Definition at line 33 of file wave_simulation_real.h.

#include <wave_simulation_real.h>

+ Collaboration diagram for fl::WaveSimulation1D_Real:

Public Member Functions

 WaveSimulation1D_Real (uint32_t length, float speed=0.16f, int dampening=6)
 
 ~WaveSimulation1D_Real ()=default
 
int getDampenening () const
 
float getf (size_t x) const
 
bool getHalfDuplex () const
 
int16_t geti16 (size_t x) const
 
int16_t geti16Previous (size_t x) const
 
int8_t geti8 (size_t x) const
 
float getSpeed () const
 
uint8_t getu8 (size_t x) const
 
bool has (size_t x) const
 
void set (size_t x, float value)
 
void setDampening (int damp)
 
void setHalfDuplex (bool on)
 
void setSpeed (float something)
 
void update ()
 

Private Attributes

fl::scoped_array< int16_t > grid1
 
fl::scoped_array< int16_t > grid2
 
uint32_t length
 
int16_t mCourantSq
 
int mDampenening
 
bool mHalfDuplex
 
size_t whichGrid
 

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