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

Detailed Description

Definition at line 34 of file wave_simulation_real.h.

#include <wave_simulation_real.h>

+ Collaboration diagram for fl::WaveSimulation1D_Real:

Public Member Functions

 WaveSimulation1D_Real (u32 length, float speed=0.16f, int dampening=6)
 
 ~WaveSimulation1D_Real ()=default
 
int getDampenening () const
 
float getf (fl::size x) const
 
bool getHalfDuplex () const
 
i16 geti16 (fl::size x) const
 
i16 geti16Previous (fl::size x) const
 
i8 geti8 (fl::size x) const
 
float getSpeed () const
 
u8 getu8 (fl::size x) const
 
bool has (fl::size x) const
 
void set (fl::size x, float value)
 
void setDampening (int damp)
 
void setHalfDuplex (bool on)
 
void setSpeed (float something)
 
void update ()
 

Private Attributes

fl::vector< i16 > grid1
 
fl::vector< i16 > grid2
 
u32 length
 
i16 mCourantSq
 
int mDampenening
 
bool mHalfDuplex
 
fl::size whichGrid
 

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