Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't know if it can be considered an algorithm, but i found bezier curves generation super useful and simple


Well, on the one hand, it's "just" nested linear interpolation with some control points, and traditionally, interpolation falls under mathematics. On the other, the wiki page mentions computer contexts first[0].

I think most of us would agree that there is a fuzzy boundary between mathematics and algorithms, or even that the latter is a subset of the former. Bresenham's Line Algorithm[1] is an algorithm, but it can also be interpreted as a kind of mathematics to determine points on a grid based on a path through that grid.

More importantly though: yes, it is a very useful and simple tool in many contexts.

[0] https://en.wikipedia.org/wiki/B%C3%A9zier_curve

[1] https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: