Krotos Modules 3
Loading...
Searching...
No Matches
SmoothedFloat.h
Go to the documentation of this file.
1#pragma once
2
3namespace krotos
4{
6 {
7 public:
12 float getSmoothedValue();
13
18 float getTarget() const;
19
25 void setTarget(int blockSize, float newTarget);
26
27 private:
28 float m_target{0.0f};
29 float m_current{0.0f};
30 float m_increment{0.0f};
31 };
32} // namespace krotos
Definition SmoothedFloat.h:6
float m_increment
Definition SmoothedFloat.h:30
float getTarget() const
gets the target value
Definition SmoothedFloat.cpp:11
float m_current
Definition SmoothedFloat.h:29
float m_target
Definition SmoothedFloat.h:28
void setTarget(int blockSize, float newTarget)
sets the target with a block size
Definition SmoothedFloat.cpp:13
float getSmoothedValue()
increments the value by the required increment and gets smootedValue
Definition SmoothedFloat.cpp:5
Definition AirAbsorptionFilter.cpp:2