kml_v_?_spline2d_eval_extrap_e
Return the interpolation result z for a given point (x, y). The interpolation object spline and data arrays xarr, yarr, and zarr are used in the calculation. There is no need to ensure that the x array is within the range of xarr or the y array is within the range of yarr.
Interface Definition
C interface:
int kml_v_float_spline2d_eval_extrap_e(const kml_float_spline2d *interp, const float x[], const float y[], size_t xin_size, size_t yin_size, float *z, size_t zin_size);
int kml_v_double_spline2d_eval_extrap_e(const kml_double_spline2d *spline, const double x[], const double y[], size_t xinSize, size_t yinSize, double *z, size_t zinSize);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
spline |
kml_float_spline2d *, kml_double_spline2d * |
Pointer to an interpolation object. |
Input |
x |
float, double |
Array that stores the value of the solution point x. |
Input |
y |
float, double |
Array that stores the value of the solution point y. |
Input |
xinSize |
size_t |
Length of the x array. |
Input |
yinSize |
size_t |
Length of the y array. |
Input |
z |
float *, double * |
Pointer to the calculation result array at the interpolation point. |
Output |
zinSize |
size_t |
Length of the z array. |
Input |