kml_?_spline2d_name
Return the name of the interpolation type used by spline.
Interface Definition
const char *kml_float_spline2d_name(const kml_float_spline2d *spline)
const char *kml_double_spline2d_name(const kml_double_spline2d *spline);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
spline |
const kml_float_spline2d* / const kml_double_spline2d* |
Pointer to an interpolation object. |
Input |
Dependencies
#include "kipl.h"
Examples
const size_t xSize = 4;
const size_t ySize = 4;
float xArr[4] = {1,1.33,1.67,2};
float yArr[4] = {1,1.33,1.67,2};
float* zArr = (float*)malloc(xSize * ySize * sizeof(float));
float x = 1;
float y = 1;
float z = 0;
kml_float_spline2d *spline = kml_float_spline2d_alloc(kml_float_interp2d_bicubic, xSize, ySize);
const char *name = kml_float_spline2d_name(spline);
Parent topic: spline2d