nwah/FitCurves.js — pull request #1 by mudcube (2014-12-02 00:12:08+00:00)
Title: Issue with divide by near zero

This post explains the same problem that I ran into:
http://compgroups.net/comp.graphics.algorithms/detail-problem-with-fitcurves.c-code/2050952

This fix makes sure that det_C0_C1 is sufficiently greater than zero to prevent unexpected results.