kml_?_spline2d_alloc
Allocate a new object of type T. The new object has a grid of length xsize in the x direction and a grid of length ysize in the y direction.
Interface Definition
kml_float_spline2d *kml_float_spline2d_alloc(const kml_float_interp2d_type *T, size_t xsize, size_t ysize)
kml_double_spline2d *kml_double_spline2d_alloc(const kml_double_interp2d_type *T, size_t xsize, size_t ysize);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
T |
const kml_float_interp2d_type* / const kml_double_interp2d_type* |
Pointer to a type object. |
Input |
xsize |
size_t |
Grid length in the x direction. |
Input |
ysize |
size_t |
Grid length in the y direction. |
Input |
Dependencies
#include "kipl.h"
Examples
const size_t xSize = 4; const size_t ySize = 4; kml_float_spline2d *spline = kml_float_spline2d_alloc(kml_float_interp2d_bicubic, xSize, ySize);
Parent topic: spline2d