mirror of
https://github.com/recp/cglm.git
synced 2026-11-19 18:33:09 -06:00
curve: de casteljau implementation for solving cubic bezier
This commit is contained in:
1 parent
730cb1e9f7
commit
c22231f296
5 files changed
+103
-3
No files matched your search
@@ -13,3 +13,15 @@ float
|
||||
glmc_bezier(float s, float p0, float c0, float c1, float p1) {
|
||||
return glm_bezier(s, p0, c0, c1, p1);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
float
|
||||
glmc_decasteljau(float prm, float p0, float c0, float c1, float p1) {
|
||||
return glm_decasteljau(prm, p0, c0, c1, p1);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
float
|
||||
glmc_bezier_solve(float prm, float p0, float c0, float c1, float p1) {
|
||||
return glm_bezier_solve(prm, p0, c0, c1, p1);
|
||||
}
|
||||
Reference in new issue
Block a user