18 #ifndef _BILLINEAR_INTERPOLATION_2D_GRID_H_
19 #define _BILLINEAR_INTERPOLATION_2D_GRID_H_
35 virtual bool AddPoint(
double x,
double y,
double z) =0;
38 virtual double Evaluate (
double x,
double y)
const =0;
50 virtual void Init (
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax) =0;
51 int IdxZ (
int ix,
int iy)
const;
80 BLI2DUnifGrid(
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax);
81 BLI2DUnifGrid(
int nx,
int ny,
double *x,
double *y,
double *z);
84 bool AddPoint(
double x,
double y,
double z);
87 double Evaluate (
double x,
double y)
const;
91 void Init (
int nx=0,
double xmin=0,
double xmax=0,
int ny=0,
double ymin=0,
double ymax=0);
104 BLI2DNonUnifGrid(
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax);
108 bool AddPoint(
double x,
double y,
double z);
111 double Evaluate (
double x,
double y)
const;
115 void Init (
int nx=0,
double xmin=0,
double xmax=0,
int ny=0,
double ymin=0,
double ymax=0);
Bilinear interpolation of 2D functions on a regular grid.
bool AddPoint(double x, double y, double z)
double Evaluate(double x, double y) const
void Init(int nx=0, double xmin=0, double xmax=0, int ny=0, double ymin=0, double ymax=0)
bool AddPoint(double x, double y, double z)
virtual void Init(int nx, double xmin, double xmax, int ny, double ymin, double ymax)=0
void Init(int nx=0, double xmin=0, double xmax=0, int ny=0, double ymin=0, double ymax=0)
virtual bool AddPoint(double x, double y, double z)=0
virtual double Evaluate(double x, double y) const =0
double Evaluate(double x, double y) const
int IdxZ(int ix, int iy) const