{"action":"created","issue":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/887","labels_url":"https://api.github.com/repos/paperjs/paper.js/issues/887/labels{/name}","comments_url":"https://api.github.com/repos/paperjs/paper.js/issues/887/comments","events_url":"https://api.github.com/repos/paperjs/paper.js/issues/887/events","html_url":"https://github.com/paperjs/paper.js/issues/887","id":124929410,"number":887,"title":"Failing boolean operation with near-collinear lines","user":{"login":"lehni","id":213275,"avatar_url":"https://avatars.githubusercontent.com/u/213275?v=3","gravatar_id":"","url":"https://api.github.com/users/lehni","html_url":"https://github.com/lehni","followers_url":"https://api.github.com/users/lehni/followers","following_url":"https://api.github.com/users/lehni/following{/other_user}","gists_url":"https://api.github.com/users/lehni/gists{/gist_id}","starred_url":"https://api.github.com/users/lehni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehni/subscriptions","organizations_url":"https://api.github.com/users/lehni/orgs","repos_url":"https://api.github.com/users/lehni/repos","events_url":"https://api.github.com/users/lehni/events{/privacy}","received_events_url":"https://api.github.com/users/lehni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paperjs/paper.js/labels/boolean-operations","name":"boolean-operations","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-01-05T09:43:03Z","updated_at":"2016-01-05T11:31:38Z","closed_at":null,"body":"After 4a10fe33d39cdc19e7286efb1556288085d04630, this is the last failing unit test in the test suite:\r\n\r\n[Sketch](http://sketch.paperjs.org/#S/jVLLTtxAEPwVyxcWyR71Y3oeoJw4I0XiyKLILEOwdrCRbSBKlH9Pe42VBXKIZMkzXVX9qJ5fZdc8pvKsvNqnafdQVuWuv5vvL81QPDXTAxZfii69Fl/1vNmWl+KhoghZTEDvAIABrJBFqZiNBBEXkIggUsg1BYOe0TJHAScOqxqtsRxVF50nZ61IZjQYomexJEp0aKvaGk00ZxGxPsYgu1qMJxILzrGIqFZSHauaTQSPHMBriiik0VDUEg0751ABrUyg/QXjoqBS4vwLxP/H+rktT7fd6gd98uPYCcdYMR35gN46l2t8TwJt+xPL5pq9ER8whCAWo48yT+cDUED1Pc5zk136OezGjNPQ79NFn/tB+zoZ0t3J+YLRR+w2P6cVXIVXuya33XeFjyV/o/dNHtP5MvyQxuc8vVHRtN2UhjHtps1BeqqshWHu25zXqrNTh/MGqwKWz5DM7Jc2vZpvj800tD/emJeHy+ZaTHRg9W14r+9B9yKr+F9IrZaSYY2paxAItZQajuqcADrdLKMA38xF9X3fDqnZP/Xa/1ieXd/8/gM=)\r\n\r\nI think it boils down to the two lines running down and up in the inside of the red shape being almost collinear, but having handles in the range of -1e-8 to 1e-10, leading to `isStraight()` returning `false`, and hence `isCollinear()` too. I think this also relates to #838, but am not quite sure how to best handle this. @iconexperience, what do you think?\r\n\r\n```js\r\nvar path1 = new Path(\"M570,290l5.8176000300452415,33.58556812220928l-28.17314339506561,-14.439003967264455l31.189735425395614,-4.568209255479985c-5.7225406635552645e-9,-3.907138079739525e-8 -59.366611385062015,8.695139599513823 -59.366611385062015,8.695139599513823z\")\r\nvar path2 = new Path(\"M575.8176000300631,323.58556812217466l-15.81760003006309,-23.585568122174664l-37.57818885419795,-3.7802815709635524z\")\r\npath1.strokeColor = 'red';\r\npath2.strokeColor = 'blue';\r\npath1.strokeScaling = path2.strokeScaling = false;\r\nvar result = path1.intersect(path2);\r\nresult.fillColor = new Color(1, 0, 0, 0.25);\r\n```"},"comment":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/comments/168977022","html_url":"https://github.com/paperjs/paper.js/issues/887#issuecomment-168977022","issue_url":"https://api.github.com/repos/paperjs/paper.js/issues/887","id":168977022,"user":{"login":"lehni","id":213275,"avatar_url":"https://avatars.githubusercontent.com/u/213275?v=3","gravatar_id":"","url":"https://api.github.com/users/lehni","html_url":"https://github.com/lehni","followers_url":"https://api.github.com/users/lehni/followers","following_url":"https://api.github.com/users/lehni/following{/other_user}","gists_url":"https://api.github.com/users/lehni/gists{/gist_id}","starred_url":"https://api.github.com/users/lehni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehni/subscriptions","organizations_url":"https://api.github.com/users/lehni/orgs","repos_url":"https://api.github.com/users/lehni/repos","events_url":"https://api.github.com/users/lehni/events{/privacy}","received_events_url":"https://api.github.com/users/lehni/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T11:31:38Z","updated_at":"2016-01-05T11:31:38Z","body":"Yes, that's better. I'm getting sluggish : )"}}