-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterpolation.h
More file actions
29 lines (25 loc) · 808 Bytes
/
Copy pathinterpolation.h
File metadata and controls
29 lines (25 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//---------------------------------------------------------------------------
#ifndef interpolationH
#define interpolationH
#include "matrix.h"
#include <vector>
namespace Aloschil
{
class Spline
{
protected:
// n - îïðåäåëÿåò ñòåïåíü ïîëèíîìà â íàøåì ñëó÷àå âñåãäà 3
Matrix T(unsigned int n,double t);
Matrix V(unsigned int n,double k);
// N - êîëè÷åñòâî ñåãìåíòîâ
//
Matrix Q(unsigned int N);
// òî÷êè
// std::vector<Matrix> U;
public:
void initializeWith(std::vector<Matrix> U);
double calculate(double t);
};
}
//---------------------------------------------------------------------------
#endif