- Restored code coverage to 100%.
- Add floating point error tolerance in quad (1 root case) and cubic (2 root case) solvers.
- Fixed wrong approximation for very small cubic curves: when diff between
start and end of a cubic curve falls within
errorBound
, in earlier versions any quadratic curve was considered to be fitting. Error estimation algorithm is changed: previously it calculated distance from points on cubic curve to quadratic, now it also calculates the other way around. Distance calculation is changed from exact solution with cubic solver to linear segment approximations of both curves.
- Fix sorting in
solveInflections
, #4.
- Support curves with inflection point.
- First release.