mathandy / svgpathtools

A collection of tools for manipulating and analyzing SVG Path objects and Bezier curves.
MIT License
557 stars 142 forks source link

Bug Corrections. Closes #113, #95, #94, and #71 #136

Closed tatarize closed 3 years ago

tatarize commented 3 years ago

Closes #113 Closes #71 Closes #95 Closes #94

Previous attempted bug correction hit a hitch closing #113. I checked the domain error and divide by zero error rather than 1e-12 range since elements can still be greater than 1e-12 and fall into those fail conditions. However numpy just accepted nan as an answer without throwing an error for the fallback code. The new fix uses fallback code if the value is nan.

mathandy commented 3 years ago

Thanks @tatarize!