tsoding / olive.c

Simple 2D Graphics Library for C
https://tsoding.github.io/olive.c/
MIT License
1.86k stars 105 forks source link

Rudimentary Bezier Curves Implementation. #18

Open TimComm opened 1 year ago

TimComm commented 1 year ago

Currently works for cubic curves (degree 3). For it to work for any degree, input points need to be a list. That would change typical usage of the library though, wasn't sure if that's an okay design choice? Was hoping to get some input on that here before I finish figuring out how to create the tests etc.

Rentib commented 1 year ago

Why does binomial coeff return double?

TimComm commented 1 year ago

Good question, I think I had some integer division bug, turned everything into doubles and missed this one while converting back one by one.