Rate This Document
Findability
Accuracy
Completeness
Readability

kml_v_?_interp2d_eval_e

Return the interpolation result z for a given point (x, y). The interpolation object interp and data arrays xarr, yarr, and zarr are used in the calculation. 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_interp2d_eval_e(const kml_double_interp2d *interp, const float xarr[], const float yarr[], const float zarr[], const float x[], const float y[], size_t xinSize, size_t yinSize, float *z, size_t zinSize);

int kml_v_double_interp2d_eval_e(const kml_double_interp2d *interp, const double xarr[], const double yarr[], const double zarr[], const double x[], const double y[], size_t xinSize, size_t yinSize, double *z, size_t zinSize);

Parameters

Parameter

Type

Description

Input/Output

interp

kml_float_interp2d*, kml_double_interp2d*

Pointer to an interpolation object.

Input

xarr

float, double

Array that stores the value of x.

Input

yarr

float, double

Array that stores the value of y.

Input

zarr

float, double

Array that stores the value of z.

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 calculation result array.

Input