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 in Line.intersect(Line) #41

Closed SebKuzminsky closed 6 years ago

SebKuzminsky commented 6 years ago

I found a bug where two obviously non-intersecting Lines still report an intersection using Line.intersect(). The bug is captured in this commit: SebKuzminsky/svgpathtools@847b270b It is highly sensitive to the precise starting and ending points of the two lines - if you round the values down to three significant places (like Line.__repr__() does) then the bug does not trigger.