-
Notifications
You must be signed in to change notification settings - Fork 0
/
Basis.h
24 lines (24 loc) · 642 Bytes
/
Basis.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class Basis {
public:
Basis( Polygon* _poly, int _order, double* _origin, double _dx, double _dy );
~Basis();
int order;
int nFuncs;
double dxInv;
double dyInv;
double* ci; // coefficients
double* scale;
double* mean;
double origin[2];
int* xPower;
int* yPower;
Polygon* poly;
void Init();
double EvalIJ( double* pt, int i );
double EvalDerivIJ( double* pt, int i, int dim );
double EvalConst( double* pt );
double EvalFull( double* pt );
double EvalDerivFull( double* pt, int dim );
double EvalWithCoeffs( double* pt, double* coeffs );
bool TestMean( double* volErr );
};