Welcome to mirror list, hosted at ThFree Co, Russian Federation.

value_interpolation.hpp « anim - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 004428d1a7d1695b0e9febcafeecc10f86ea081c (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
31
#pragma once

#include "task.hpp"

namespace anim
{
  class ValueInterpolation : public Task
  {
  private:

    double m_startValue;
    double m_curValue;
    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);
  };
}