24#ifndef WAVE_H_INCLUDED
25#define WAVE_H_INCLUDED
53namespace Hydrax{
namespace Noise
68 Wave(Ogre::Vector2 dir,
float A,
float T,
float p=0.f);
77 void update(
const Ogre::Real &timeSinceLastFrame);
85 float getValue(
const float &
x,
const float &
y);
A wave defined by the direction, amplitude, period, and optionally phase.
float mC
Speed (calculated)
Ogre::Vector2 mDir
Direction (must be normalised)
void update(const Ogre::Real &timeSinceLastFrame)
Call it each frame.
float getPhase() const
Returns phase of the wave.
float getSpeed() const
Returns phase speed of the wave.
float getLongitude() const
Returns longitude of the wave.
Ogre::Vector2 getDirection() const
Returns direction of the wave.
float getAmplitude() const
Returns amplitude of the wave.
float mK
Dispersion factor.
float mL
Longitude (calculated)
double mTime
Elapsed time.
float getPeriod() const
Returns period of the wave.
float getValue(const float &x, const float &y)
Get the especified x/y noise value.