---
title: kml_?_interp2d_name
description: 返回interp使用的插值类型的名称。
url: "https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/devg/kunpengaccel_kml_0528.html"
---

# kml_?_interp2d_name

返回interp使用的插值类型的名称。

#### 接口定义

const char *kml_float_interp2d_name(const kml_float_interp2d *interp)

const char *kml_double_interp2d_name(const kml_double_interp2d *interp);


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| interp | const kml\_float\_interp2d\* / const kml\_double\_interp2d\* | 指向插值对象的指针。 | 输入 |


#### 依赖

#include "kipl.h"


#### 示例

```
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_interp2d *interp = kml_float_interp2d_alloc(kml_float_interp2d_bicubic, xSize, ySize);
const char *name = kml_float_interp2d_name(interp);
```
