blob: 303633f01d081a20541c07d73c41445c32644e7a (
plain)
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
30
31
32
|
#pragma once
#include <cmath>
#include "eigen3/Eigen/Dense"
using namespace Eigen;
#define X_DEGREE 4 // Highest x-degree of current Surface Fit Model
#define Y_DEGREE 3 // Highest y-degree of current Surface Fit Model
class SurfaceFitModel {
private:
MatrixXd p; // Polynomial values
public:
/**
* @brief Construct a new Surface Fit Model object
*
*/
SurfaceFitModel();
/**
* @brief
*
* @param x
* @param y
* @return double
*/
double getFit(double x, double y);
};
|