{"action":"opened","issue":{"url":"https://api.github.com/repos/mapbox/earcut.hpp/issues/17","labels_url":"https://api.github.com/repos/mapbox/earcut.hpp/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/earcut.hpp/issues/17/comments","events_url":"https://api.github.com/repos/mapbox/earcut.hpp/issues/17/events","html_url":"https://github.com/mapbox/earcut.hpp/issues/17","id":111230015,"number":17,"title":"Clean up interface","user":{"login":"jfirebaugh","id":98601,"avatar_url":"https://avatars.githubusercontent.com/u/98601?v=3","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-13T17:33:24Z","updated_at":"2015-10-13T17:33:24Z","closed_at":null,"body":"The public interface should be:\r\n\r\n```\r\ntemplate <typename Polygon, typename N = uint32_t>\r\nstd::vector<N> earcut(const Polygon&);\r\n```\r\n\r\nThe `Coord` type should be deduced, and everything else should be hidden in a `detail` namespace."}}