Template
Chargement...
Recherche...
Aucune correspondance
Integrator.h
1/****************************************************************************************
2Nom du fichier : Integrator.h
3Auteur : Mathieu Durand
4Date de création : 17 juillet 2024
5
6****************************************************************************************/
7
8#ifndef INTEGRATOR_H
9#define INTEGRATOR_H
10
11#define DEFAULT_INTEGRAL_VALUE 0
12
13#include "delta_time/SafeMicroDeltaTime.h"
14
21{
22 public:
23 Integrator(double initialIntegral);
24 Integrator();
25
26 double getIntegral();
27 void setIntegral(double integal);
28
29 void integrate(double value);
30
32
33 private:
34 double integral;
35 SafeMicroDeltaTime deltaTimeProvider;
36
37};
38
39#endif // INTEGRATOR_H
Definition: Integrator.h:21
double getIntegral()
Definition: Integrator.cpp:19
Integrator()
Definition: Integrator.cpp:17
SafeMicroDeltaTime * getDeltaTimeProvider()
Definition: Integrator.cpp:32
void integrate(double value)
Definition: Integrator.cpp:27
void setIntegral(double integal)
Definition: Integrator.cpp:23
Class for computing delta time with microseconds precision while handling overflow in a transparent m...
Definition: SafeMicroDeltaTime.h:19