blob: 3da01d76e0113384bc856969250f453286f6a577 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#pragma once
#include "anim/task.hpp"
namespace anim
{
class ValueInterpolation : public Task
{
private:
double m_startValue;
double & m_outValue;
double m_endValue;
double m_startTime;
double m_interval;
double m_dist;
public:
ValueInterpolation(double start,
double end,
double interval,
double & out);
void OnStart(double ts);
void OnStep(double ts);
void OnEnd(double ts);
};
}
|