blob: 02e8db6164e52827fcbf4b889cbd0b954a643b25 (
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 "task.hpp"
#include "../geometry/point2d.hpp"
namespace anim
{
class SegmentInterpolation : public Task
{
private:
m2::PointD m_startPt;
m2::PointD m_endPt;
m2::PointD & m_outPt;
double m_startTime;
double m_interval;
public:
SegmentInterpolation(m2::PointD const & startPt,
m2::PointD const & endPt,
double interval,
m2::PointD & outPt);
void OnStart(double ts);
void OnStep(double ts);
void OnEnd(double ts);
};
}
|