mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
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
|
||||
Reference in New Issue
Block a user