Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
24
libs/drape_frontend/animation/base_interpolator.hpp
Normal file
24
libs/drape_frontend/animation/base_interpolator.hpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
namespace df
|
||||
{
|
||||
class BaseInterpolator
|
||||
{
|
||||
public:
|
||||
explicit BaseInterpolator(double duration, double delay = 0);
|
||||
virtual ~BaseInterpolator();
|
||||
|
||||
bool IsFinished() const;
|
||||
virtual void Advance(double elapsedSeconds);
|
||||
|
||||
protected:
|
||||
double GetT() const;
|
||||
double GetElapsedTime() const;
|
||||
double GetDuration() const;
|
||||
|
||||
private:
|
||||
double m_elapsedTime;
|
||||
double m_duration;
|
||||
double m_delay;
|
||||
};
|
||||
} // namespace df
|
||||
Loading…
Add table
Add a link
Reference in a new issue