vectozavr-shooter/engine/animation/Interpolation.h

27 lines
539 B
C
Raw Normal View History

2021-09-13 15:53:43 +03:00
//
// Created by Иван Ильин on 26.01.2021.
//
#ifndef ENGINE_INTERPOLATION_H
#define ENGINE_INTERPOLATION_H
2022-07-11 16:58:05 +03:00
#include "../math/Vec2D.h"
2021-09-13 15:53:43 +03:00
namespace Interpolation {
2021-11-09 22:54:20 +03:00
double Linear(double t);
2021-10-31 11:39:08 +03:00
2021-11-09 22:54:20 +03:00
double Bezier(const Vec2D &p1, const Vec2D &p2, double t);
2021-10-31 11:39:08 +03:00
2021-11-09 22:54:20 +03:00
double Bouncing(double t);
2021-09-13 15:53:43 +03:00
2021-11-09 22:54:20 +03:00
double dLinear(double t, double dt);
2021-10-31 11:39:08 +03:00
2021-11-09 22:54:20 +03:00
double dCos(double t, double dt);
2021-10-31 11:39:08 +03:00
2021-11-09 22:54:20 +03:00
double dBezier(const Vec2D &p1, const Vec2D &p2, double t, double dt);
2021-10-31 11:39:08 +03:00
2021-11-09 22:54:20 +03:00
double dBouncing(double t, double dt);
2021-09-13 15:53:43 +03:00
};
#endif //INC_3DZAVR_INTERPOLATION_H