summaryrefslogtreecommitdiff
path: root/include/cglm/call/bezier.h
blob: a6a0eb4d74e543d2e08f476ea726e8ada6cf8ce4 (plain) (blame)
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
28
29
30
31
/*
 * Copyright (c), Recep Aslantas.
 *
 * MIT License (MIT), http://opensource.org/licenses/MIT
 * Full license can be found in the LICENSE file
 */

#ifndef cglmc_bezier_h
#define cglmc_bezier_h
#ifdef __cplusplus
extern "C" {
#endif

#include "../cglm.h"

CGLM_EXPORT
float
glmc_bezier(float s, float p0, float c0, float c1, float p1);

CGLM_EXPORT
float
glmc_hermite(float s, float p0, float t0, float t1, float p1);

CGLM_EXPORT
float
glmc_decasteljau(float prm, float p0, float c0, float c1, float p1);

#ifdef __cplusplus
}
#endif
#endif /* cglmc_bezier_h */