recp / cglm

📽 Highly Optimized 2D / 3D Graphics Math (glm) for C
MIT License
2.26k stars 229 forks source link

added a quaternion cubic bezier for cglm #417

Closed telephone001 closed 4 months ago

telephone001 commented 4 months ago

Tried to make a bernstein polynomial for it but since each slerp depends on the angle, I don't think its gonna work. So I used Decasteljau. Interested in hearing how I can improve this in the comments

telephone001 commented 4 months ago

just realized the bezier you requested isn't a cubic bezier so just gonna close this and do more research

recp commented 4 months ago

Wow, sorry for the late response due busy days...

I also need to do some research for glm_quat_bezier() and glm_quat_spline() as mentioned at https://github.com/recp/cglm/issues/344