linebender / kurbo

A Rust library for manipulating curves
Apache License 2.0
716 stars 69 forks source link

Handle special case of fitting a line #325

Closed raphlinus closed 11 months ago

raphlinus commented 11 months ago

When the algorithm is asked to curve-fit a line, area and moment are both zero, which provokes numerical instablily. Just return a straight line in that case.

richard-uk1 commented 11 months ago

Hi would you mind if I merged this and cut a release?

raphlinus commented 11 months ago

Feel free to do a release, sure.