21 lines
337 B
C++
21 lines
337 B
C++
#pragma once
|
|
|
|
namespace blitz {
|
|
namespace maths {
|
|
|
|
class EMASmoother {
|
|
private:
|
|
float Alpha;
|
|
|
|
public:
|
|
float Current;
|
|
EMASmoother();
|
|
void TickUnitT(float target);
|
|
void Tick(float target, float delta);
|
|
float GetAlpha();
|
|
void SetAlpha(float alpha);
|
|
void SetSmoothingTime(float t);
|
|
};
|
|
|
|
} // namespace maths
|
|
} // namespace blitz
|