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

Detailed Description

Definition at line 115 of file wave_simulation_real.h.

#include <wave_simulation_real.h>

+ Collaboration diagram for fl::WaveSimulation2D_Real:

Public Member Functions

 WaveSimulation2D_Real (u32 W, u32 H, float speed=0.16f, float dampening=6.0f)
 
 ~WaveSimulation2D_Real ()=default
 
int getDampenening () const
 
float getf (fl::size x, fl::size y) const
 
bool getHalfDuplex () const
 
u32 getHeight () const
 
i16 geti16 (fl::size x, fl::size y) const
 
i16 geti16Previous (fl::size x, fl::size y) const
 
i8 geti8 (fl::size x, fl::size y) const
 
float getSpeed () const
 
u8 getu8 (fl::size x, fl::size y) const
 
u32 getWidth () const
 
bool has (fl::size x, fl::size y) const
 
void setDampening (int damp)
 
void setf (fl::size x, fl::size y, float value)
 
void setHalfDuplex (bool on)
 
void seti16 (fl::size x, fl::size y, i16 value)
 
void setSpeed (float something)
 
void setXCylindrical (bool on)
 
void update ()
 

Private Attributes

fl::vector< i16, fl::allocator_psram< i16 > > grid1
 
fl::vector< i16, fl::allocator_psram< i16 > > grid2
 
u32 height
 
i16 mCourantSq
 
int mDampening
 
bool mHalfDuplex
 
bool mXCylindrical = false
 
u32 stride
 
fl::size whichGrid
 
u32 width
 

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