A basic transverse wave.
This wave has the following characteristics:
frequency, wavelength, speed. Regarding distance, the openGL screen measures a distance of 2.0 unit. Both in x and y axes.
damping constant: an exponential function that decays the amplitude by distance BUT NOT by time.
| life_event::CWave | ||
| life_event::CWave_data |
| Wave | ( | ) | ||
Default constructor.
| getAmplitude | ( | ) | ||
Return the maximum amplitude at the current time.
| return |
| getAmplitudeAt | ( | GLfloat | distance | ) |
Get amplitude at a certain point in current time.
| distance | |
| return |
| getAngularMomentum | ( | ) | ||
| return |
| getCenterX | ( | ) | ||
| return |
| getCenterY | ( | ) | ||
| return |
| getDampingConst | ( | ) | ||
| return |
| getFrequency | ( | ) | ||
| return |
| getInitialPhase | ( | ) | ||
| return |
| getTime | ( | ) | ||
| return |
| getTimePeriod | ( | ) | ||
| return |
| getWaveLength | ( | ) | ||
| return |
| getWaveSpeed | ( | ) | ||
| return |
| setAmplitude | ( | GLfloat | amplitude | ) |
Set the current maximum amplitude.
| amplitude |
| setCenter | ( | GLfloat | x, | |
| GLfloat | y | ) | ||
| x | |
| y |
| setCenterX | ( | GLfloat | x | ) |
| x |
| setCenterY | ( | GLfloat | y | ) |
| y |
| setDampingConst | ( | GLfloat | dampingConst | ) |
| dampingConst |
| setFrequency | ( | GLfloat | f | ) |
| f |
| setInitialPhase | ( | GLfloat | theta | ) |
| theta |
| setTime | ( | GLfloat | time | ) |
| time |
| setWaveLength | ( | GLfloat | w | ) |
| w |