Currently you get weird geometric results (sometimes) when the curve is not x-monotone.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by dov and has received 0 comments.