{"action":"created","issue":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2666","labels_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2666/labels{/name}","comments_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2666/comments","events_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2666/events","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/2666","id":71340910,"number":2666,"title":"Correct interpolation of headings/angles ","user":{"login":"Relfos","id":6756286,"avatar_url":"https://avatars.githubusercontent.com/u/6756286?v=3","gravatar_id":"","url":"https://api.github.com/users/Relfos","html_url":"https://github.com/Relfos","followers_url":"https://api.github.com/users/Relfos/followers","following_url":"https://api.github.com/users/Relfos/following{/other_user}","gists_url":"https://api.github.com/users/Relfos/gists{/gist_id}","starred_url":"https://api.github.com/users/Relfos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Relfos/subscriptions","organizations_url":"https://api.github.com/users/Relfos/orgs","repos_url":"https://api.github.com/users/Relfos/repos","events_url":"https://api.github.com/users/Relfos/events{/privacy}","received_events_url":"https://api.github.com/users/Relfos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-27T16:48:54Z","updated_at":"2015-05-11T13:53:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/pulls/2666","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/2666","diff_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/2666.diff","patch_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/2666.patch"},"body":"This very small patch does two things:\r\n- Allows adding custom types to CZML properties via Cesium.CzmlDataSource.processPacketData()\r\n- Implements a Angle type which is now used for Billboards rotations\r\n\r\nThe previous version of Cesium has a list of hardcoded types in function unwrapInterval() which is called by processPacketData(). If an unknown type is passed in, it simply throws an exception.\r\n\r\nThis patch simply allows any custom type to be passed in, as long as the type provides a method to calculate a defaultValue (which is exactly what unwrapInterval did for the builtin-types).\r\n\r\nThe main motivation for this was to add suport for proper interpolation of angles/headings, which is implemented via the Angle type, which can now be passed to the processPacketData() method as the 'type' argument.\r\n\r\nThe discussion that led to this patch can be found here:\r\nhttps://groups.google.com/forum/#!topic/cesium-dev/2ZrxVg9PLbg\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/comments/100915966","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/pull/2666#issuecomment-100915966","issue_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/2666","id":100915966,"user":{"login":"mramato","id":1495196,"avatar_url":"https://avatars.githubusercontent.com/u/1495196?v=3","gravatar_id":"","url":"https://api.github.com/users/mramato","html_url":"https://github.com/mramato","followers_url":"https://api.github.com/users/mramato/followers","following_url":"https://api.github.com/users/mramato/following{/other_user}","gists_url":"https://api.github.com/users/mramato/gists{/gist_id}","starred_url":"https://api.github.com/users/mramato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mramato/subscriptions","organizations_url":"https://api.github.com/users/mramato/orgs","repos_url":"https://api.github.com/users/mramato/repos","events_url":"https://api.github.com/users/mramato/events{/privacy}","received_events_url":"https://api.github.com/users/mramato/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T13:53:18Z","updated_at":"2015-05-11T13:53:18Z","body":"Don't worry, I haven't forgotten.  I definitely plan on looking at this soon."}}