1 /* 2 * Copyright (c), Recep Aslantas. 3 * 4 * MIT License (MIT), http://opensource.org/licenses/MIT 5 * Full license can be found in the LICENSE file 6 */ 7 8 #ifndef cglmc_bezier_h 9 #define cglmc_bezier_h 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 #include "../cglm.h" 15 16 CGLM_EXPORT 17 float 18 glmc_bezier(float s, float p0, float c0, float c1, float p1); 19 20 CGLM_EXPORT 21 float 22 glmc_hermite(float s, float p0, float t0, float t1, float p1); 23 24 CGLM_EXPORT 25 float 26 glmc_decasteljau(float prm, float p0, float c0, float c1, float p1); 27 28 #ifdef __cplusplus 29 } 30 #endif 31 #endif /* cglmc_bezier_h */ 32