kml_?_interp_name
Return the name of the interpolation type used by interp.
Interface Definition
const char *kml_float_interp_name(const kml_float_interp *interp)
const char *kml_double_interp_name(const kml_double_interp *interp);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
interp |
kml_float_interp* / kml_double_interp* |
Pointer to an interpolation object. |
Input |
Dependencies
#include "kipl.h"
Examples
const size_t xSize = 4;
float xArr[4] = {1,1.33,1.67,2};
float* yArr = (float*)malloc(xSize * sizeof(float));
float x = 1;
float y = 0;
kml_float_interp *interp = kml_float_interp_alloc(kml_float_interp_cspline, xSize);
const char *name = kml_float_interp_name(interp);
Parent topic: interp