blob: 055c242edc7adf95c9d6d398c927854c9f40bb13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef INTERPOLATOR_H
#define INTERPOLATOR_H
#include "solid_types.h"
#ifdef __cplusplus
extern "C" {
#endif
DT_DECLARE_HANDLE(IP_IpoHandle);
typedef struct IP_ControlPoint {
DT_Scalar m_key;
DT_Scalar m_keyValue;
} IP_ControlPoint;
IP_IpoHandle IP_CreateLinear(const IP_ControlPoint *cpoints, int num_cpoints);
void IP_DeleteInterpolator(IP_IpoHandle ipo);
DT_Scalar IP_GetValue(IP_IpoHandle ipo, DT_Scalar key);
#ifdef __cplusplus
}
#endif
#endif
|