curve: de casteljau implementation for solving cubic bezier

This commit is contained in:
Recep Aslantas
2019-01-28 15:52:42 +03:00
parent 730cb1e9f7
commit c22231f296
5 changed files with 103 additions and 3 deletions

View File

@@ -5,8 +5,8 @@
* Full license can be found in the LICENSE file
*/
#ifndef cglmc_curve_h
#define cglmc_curve_h
#ifndef cglmc_bezier_h
#define cglmc_bezier_h
#ifdef __cplusplus
extern "C" {
#endif
@@ -17,7 +17,15 @@ CGLM_EXPORT
float
glmc_bezier(float s, float p0, float c0, float c1, float p1);
CGLM_EXPORT
float
glmc_decasteljau(float prm, float p0, float c0, float c1, float p1);
CGLM_EXPORT
float
glmc_bezier_solve(float prm, float p0, float c0, float c1, float p1);
#ifdef __cplusplus
}
#endif
#endif /* cglmc_curve_h */
#endif /* cglmc_bezier_h */