1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-03 14:34:34 +00:00
Aquaria/BBGE/Interpolators.h
2022-09-05 17:19:34 +02:00

23 lines
430 B
C++

#ifndef BBGE_INTERPOLATORS_H
#define BBGE_INTERPOLATORS_H
#include <algorithm> // std::pair
#include <vector>
#include "Vector.h"
class CosineInterpolator
{
public:
CosineInterpolator();
void clear();
void setPoints(const Vector *p, size_t n);
float operator()(float x) const;
void interpolateRange(float *ys, const float *xs, size_t n);
private:
std::vector<std::pair<float, float> > pxy;
};
#endif