Horizon
msd_animator.hpp
1 #pragma once
2 #include "msd.hpp"
3 
4 namespace horizon {
5 class MSDAnimator {
6 public:
7  bool step(double time);
8  double get_s() const;
9  void stop();
10  void start();
11  float target = 0;
12  bool is_running() const;
13 
14 private:
15  MSD msd;
16  bool running = false;
17  double start_time = 0;
18 };
19 } // namespace horizon
horizon::MSD
Definition: msd.hpp:4
horizon::MSDAnimator
Definition: msd_animator.hpp:5