blob: d89602d3fe4db77c6d0123bf20f67cfa2a4f283e (
plain) (
blame)
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
|
#ifndef INTERPOLATION_H_861230A8
#define INTERPOLATION_H_861230A8
class Interpolation {
public:
void start(int length, double amount);
void tick(double dt);
// Info
double getProgress() const { return progress_; }
bool isComplete() const { return progress_ == dest_; }
private:
double progress_ = 0.0;
double dest_ = 0.0;
double start_ = 0.0;
double length_ = 0.0;
double thus_ = 0.0;
};
#endif /* end of include guard: INTERPOLATION_H_861230A8 */
|