{"action":"created","issue":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/789","labels_url":"https://api.github.com/repos/paperjs/paper.js/issues/789/labels{/name}","comments_url":"https://api.github.com/repos/paperjs/paper.js/issues/789/comments","events_url":"https://api.github.com/repos/paperjs/paper.js/issues/789/events","html_url":"https://github.com/paperjs/paper.js/issues/789","id":107409868,"number":789,"title":"Line.getSide() and Line.getSignedDistance() return values have opposite signs","user":{"login":"iconexperience","id":2122773,"avatar_url":"https://avatars.githubusercontent.com/u/2122773?v=3","gravatar_id":"","url":"https://api.github.com/users/iconexperience","html_url":"https://github.com/iconexperience","followers_url":"https://api.github.com/users/iconexperience/followers","following_url":"https://api.github.com/users/iconexperience/following{/other_user}","gists_url":"https://api.github.com/users/iconexperience/gists{/gist_id}","starred_url":"https://api.github.com/users/iconexperience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iconexperience/subscriptions","organizations_url":"https://api.github.com/users/iconexperience/orgs","repos_url":"https://api.github.com/users/iconexperience/repos","events_url":"https://api.github.com/users/iconexperience/events{/privacy}","received_events_url":"https://api.github.com/users/iconexperience/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-20T18:40:11Z","updated_at":"2015-09-26T11:43:45Z","closed_at":null,"body":"Currently the return values of `Line.getSide()` and `Line.getSignedDistance()` have opposite signes for the same parameters. I do not know if there is a standard which is the correct behaviour, but both signs should be the same, if only for consistency.\r\n\r\n<a href=\"http://sketch.paperjs.org/#S/rVTda9swEP9XhF5igzH2lXXD3ehDy542KHRvcR4c+ZKKOFKRlLSl5H+fznb81RI8WMCO7053vw9Zfueq2CPP+OMOnXjiERe6pPhYGObw1aXsB1P4wh60VO6PTwRdFKTfIgZJGN7kJlf14ngjq+pOV9r4tsW6KsRuMagK7R+Uo9rvwj3FVm5VsEX36P+xvJfWFUpgEIZNE11nHnCBB1xPicBFIjAkUsOXHnSMWepeOlG9k0ZUGLxTnfmf8O1oMrb8kkTsa7KKzgVTlPJgM3bVZToqGVsYLBeUP4UjtEoqTAlnCPnLJxvA3G2M3k/Acue0T6WUS/ukdUbv8IzXKP8E0euDWfrgvwmEGQLhE4VX/66Qrs1BCSe1Ylr9NP4lD/DoNYWsk0hbHBvtCodBGvV7EK/1QZU2bixohtL6bqNaDTX9vsvidu877DJZxc/0Xg5HdsW0LY7H0kGgsf2poOHxx6NRT2wmxK8tQBu+ncMjCqdNX25jX68VP2sryRdaME74Fc4csD1Huaurw4PU0PzOEnbLcu63Oucs809bg6hy3rZ1zTBxF+a4C1N34ZK7MNddGtt7Wrajx07C2EmYOAljJ2HqJHx08mbgxdRImGlkfz/RzX+i1waLXU3V8my5Ov0F\">This Sketch demonstrates how the sign behaves for both functions.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2122773/9982319/a8260a0e-5fd7-11e5-986c-43a7de9c7c84.png)\r\n</a>\r\n\r\n\r\nPlease note that both functions are currently being used in the code, so these parts must be changed when changing the function's behaviour."},"comment":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/comments/143425322","html_url":"https://github.com/paperjs/paper.js/issues/789#issuecomment-143425322","issue_url":"https://api.github.com/repos/paperjs/paper.js/issues/789","id":143425322,"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":"2015-09-26T11:43:45Z","updated_at":"2015-09-26T11:43:45Z","body":"So `getSide()` is currently behaving the right way, and `getSignedDistance()` should flip the sign, right?"}}