kml_?_spline_name
Return the name of the interpolation type used by spline.
Interface Definition
const char *kml_float_spline_name(const kml_float_spline *spline)
const char *kml_double_spline_name(const kml_double_spline *spline);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
spline |
const kml_float_spline* / const kml_double_spline* |
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_spline *spline = kml_float_spline_alloc(kml_float_interp_cspline, xSize);
const char *name = kml_float_spline_name(spline);
Parent topic: spline