{"action":"created","comment":{"url":"https://api.github.com/repos/LSST/sg/pulls/comments/24224296","id":24224296,"diff_hunk":"@@ -0,0 +1,69 @@\n+/*\n+ * LSST Data Management System\n+ * Copyright 2014-2015 AURA/LSST.\n+ *\n+ * This product includes software developed by the\n+ * LSST Project (http://www.lsst.org/).\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the LSST License Statement and\n+ * the GNU General Public License along with this program.  If not,\n+ * see <https://www.lsstcorp.org/LegalNotices/>.\n+ */\n+\n+#ifndef LSST_SG_ANGLEINTERVAL_H_\n+#define LSST_SG_ANGLEINTERVAL_H_\n+\n+/// \\file\n+/// \\author Serge Monkewitz\n+/// \\brief This file defines a class for representing angle intervals.\n+\n+#include \"Angle.h\"\n+#include \"Interval.h\"\n+\n+\n+namespace lsst {\n+namespace sg {\n+\n+/// `AngleInterval` is closed interval of arbitrary angles.\n+class AngleInterval : public Interval<AngleInterval, Angle> {\n+    typedef Interval<AngleInterval, Angle> Base;\n+public:\n+    // Factory functions\n+    static AngleInterval fromDegrees(double x, double y) {\n+        return AngleInterval(Angle::fromDegrees(x),\n+                             Angle::fromDegrees(y));\n+    }\n+    static AngleInterval fromRadians(double x, double y) {\n+        return AngleInterval(Angle::fromRadians(x),\n+                             Angle::fromRadians(y));\n+    }\n+    static AngleInterval empty() {\n+        return AngleInterval();\n+    }\n+    static AngleInterval full() {\n+        return AngleInterval(Angle(-std::numeric_limits<double>::infinity()),\n+                             Angle(std::numeric_limits<double>::infinity()));\n+    }\n+\n+    AngleInterval() : Base() {}\n+\n+    explicit AngleInterval(Angle x) : Base(x) {}\n+\n+    AngleInterval(Angle x, Angle y) : Base(x, y) {}\n+\n+    AngleInterval(Base const & base) : Base(base) {}\n+};","path":"src/AngleInterval.h","position":65,"original_position":65,"commit_id":"10a5788e367c0e18c3954d1ec381152cf4ed517f","original_commit_id":"10a5788e367c0e18c3954d1ec381152cf4ed517f","user":{"login":"TallJimbo","id":1330720,"avatar_url":"https://avatars.githubusercontent.com/u/1330720?v=3","gravatar_id":"","url":"https://api.github.com/users/TallJimbo","html_url":"https://github.com/TallJimbo","followers_url":"https://api.github.com/users/TallJimbo/followers","following_url":"https://api.github.com/users/TallJimbo/following{/other_user}","gists_url":"https://api.github.com/users/TallJimbo/gists{/gist_id}","starred_url":"https://api.github.com/users/TallJimbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TallJimbo/subscriptions","organizations_url":"https://api.github.com/users/TallJimbo/orgs","repos_url":"https://api.github.com/users/TallJimbo/repos","events_url":"https://api.github.com/users/TallJimbo/events{/privacy}","received_events_url":"https://api.github.com/users/TallJimbo/received_events","type":"User","site_admin":false},"body":"Just saw `NormalizedAngleInterval`.  Sorry for the noise.","created_at":"2015-02-06T06:07:03Z","updated_at":"2015-02-06T06:07:03Z","html_url":"https://github.com/LSST/sg/pull/1#discussion_r24224296","pull_request_url":"https://api.github.com/repos/LSST/sg/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/LSST/sg/pulls/comments/24224296"},"html":{"href":"https://github.com/LSST/sg/pull/1#discussion_r24224296"},"pull_request":{"href":"https://api.github.com/repos/LSST/sg/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/LSST/sg/pulls/1","id":28680779,"html_url":"https://github.com/LSST/sg/pull/1","diff_url":"https://github.com/LSST/sg/pull/1.diff","patch_url":"https://github.com/LSST/sg/pull/1.patch","issue_url":"https://api.github.com/repos/LSST/sg/issues/1","number":1,"state":"open","locked":false,"title":"Tickets/dm 215","user":{"login":"fritzm","id":1530638,"avatar_url":"https://avatars.githubusercontent.com/u/1530638?v=3","gravatar_id":"","url":"https://api.github.com/users/fritzm","html_url":"https://github.com/fritzm","followers_url":"https://api.github.com/users/fritzm/followers","following_url":"https://api.github.com/users/fritzm/following{/other_user}","gists_url":"https://api.github.com/users/fritzm/gists{/gist_id}","starred_url":"https://api.github.com/users/fritzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fritzm/subscriptions","organizations_url":"https://api.github.com/users/fritzm/orgs","repos_url":"https://api.github.com/users/fritzm/repos","events_url":"https://api.github.com/users/fritzm/events{/privacy}","received_events_url":"https://api.github.com/users/fritzm/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-04T22:19:31Z","updated_at":"2015-02-06T06:07:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b124d9fbcbe2065da905f98ad84f6646a56bcd0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LSST/sg/pulls/1/commits","review_comments_url":"https://api.github.com/repos/LSST/sg/pulls/1/comments","review_comment_url":"https://api.github.com/repos/LSST/sg/pulls/comments/{number}","comments_url":"https://api.github.com/repos/LSST/sg/issues/1/comments","statuses_url":"https://api.github.com/repos/LSST/sg/statuses/10a5788e367c0e18c3954d1ec381152cf4ed517f","head":{"label":"LSST:tickets/DM-215","ref":"tickets/DM-215","sha":"10a5788e367c0e18c3954d1ec381152cf4ed517f","user":{"login":"LSST","id":1134504,"avatar_url":"https://avatars.githubusercontent.com/u/1134504?v=3","gravatar_id":"","url":"https://api.github.com/users/LSST","html_url":"https://github.com/LSST","followers_url":"https://api.github.com/users/LSST/followers","following_url":"https://api.github.com/users/LSST/following{/other_user}","gists_url":"https://api.github.com/users/LSST/gists{/gist_id}","starred_url":"https://api.github.com/users/LSST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LSST/subscriptions","organizations_url":"https://api.github.com/users/LSST/orgs","repos_url":"https://api.github.com/users/LSST/repos","events_url":"https://api.github.com/users/LSST/events{/privacy}","received_events_url":"https://api.github.com/users/LSST/received_events","type":"Organization","site_admin":false},"repo":{"id":30316723,"name":"sg","full_name":"LSST/sg","owner":{"login":"LSST","id":1134504,"avatar_url":"https://avatars.githubusercontent.com/u/1134504?v=3","gravatar_id":"","url":"https://api.github.com/users/LSST","html_url":"https://github.com/LSST","followers_url":"https://api.github.com/users/LSST/followers","following_url":"https://api.github.com/users/LSST/following{/other_user}","gists_url":"https://api.github.com/users/LSST/gists{/gist_id}","starred_url":"https://api.github.com/users/LSST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LSST/subscriptions","organizations_url":"https://api.github.com/users/LSST/orgs","repos_url":"https://api.github.com/users/LSST/repos","events_url":"https://api.github.com/users/LSST/events{/privacy}","received_events_url":"https://api.github.com/users/LSST/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LSST/sg","description":null,"fork":false,"url":"https://api.github.com/repos/LSST/sg","forks_url":"https://api.github.com/repos/LSST/sg/forks","keys_url":"https://api.github.com/repos/LSST/sg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LSST/sg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LSST/sg/teams","hooks_url":"https://api.github.com/repos/LSST/sg/hooks","issue_events_url":"https://api.github.com/repos/LSST/sg/issues/events{/number}","events_url":"https://api.github.com/repos/LSST/sg/events","assignees_url":"https://api.github.com/repos/LSST/sg/assignees{/user}","branches_url":"https://api.github.com/repos/LSST/sg/branches{/branch}","tags_url":"https://api.github.com/repos/LSST/sg/tags","blobs_url":"https://api.github.com/repos/LSST/sg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LSST/sg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LSST/sg/git/refs{/sha}","trees_url":"https://api.github.com/repos/LSST/sg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LSST/sg/statuses/{sha}","languages_url":"https://api.github.com/repos/LSST/sg/languages","stargazers_url":"https://api.github.com/repos/LSST/sg/stargazers","contributors_url":"https://api.github.com/repos/LSST/sg/contributors","subscribers_url":"https://api.github.com/repos/LSST/sg/subscribers","subscription_url":"https://api.github.com/repos/LSST/sg/subscription","commits_url":"https://api.github.com/repos/LSST/sg/commits{/sha}","git_commits_url":"https://api.github.com/repos/LSST/sg/git/commits{/sha}","comments_url":"https://api.github.com/repos/LSST/sg/comments{/number}","issue_comment_url":"https://api.github.com/repos/LSST/sg/issues/comments/{number}","contents_url":"https://api.github.com/repos/LSST/sg/contents/{+path}","compare_url":"https://api.github.com/repos/LSST/sg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LSST/sg/merges","archive_url":"https://api.github.com/repos/LSST/sg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LSST/sg/downloads","issues_url":"https://api.github.com/repos/LSST/sg/issues{/number}","pulls_url":"https://api.github.com/repos/LSST/sg/pulls{/number}","milestones_url":"https://api.github.com/repos/LSST/sg/milestones{/number}","notifications_url":"https://api.github.com/repos/LSST/sg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LSST/sg/labels{/name}","releases_url":"https://api.github.com/repos/LSST/sg/releases{/id}","created_at":"2015-02-04T19:27:06Z","updated_at":"2015-02-04T19:27:06Z","pushed_at":"2015-02-06T01:17:07Z","git_url":"git://github.com/LSST/sg.git","ssh_url":"git@github.com:LSST/sg.git","clone_url":"https://github.com/LSST/sg.git","svn_url":"https://github.com/LSST/sg","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"LSST:master","ref":"master","sha":"555ad8ddbf481533084548e6c3241b2a3920bfd5","user":{"login":"LSST","id":1134504,"avatar_url":"https://avatars.githubusercontent.com/u/1134504?v=3","gravatar_id":"","url":"https://api.github.com/users/LSST","html_url":"https://github.com/LSST","followers_url":"https://api.github.com/users/LSST/followers","following_url":"https://api.github.com/users/LSST/following{/other_user}","gists_url":"https://api.github.com/users/LSST/gists{/gist_id}","starred_url":"https://api.github.com/users/LSST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LSST/subscriptions","organizations_url":"https://api.github.com/users/LSST/orgs","repos_url":"https://api.github.com/users/LSST/repos","events_url":"https://api.github.com/users/LSST/events{/privacy}","received_events_url":"https://api.github.com/users/LSST/received_events","type":"Organization","site_admin":false},"repo":{"id":30316723,"name":"sg","full_name":"LSST/sg","owner":{"login":"LSST","id":1134504,"avatar_url":"https://avatars.githubusercontent.com/u/1134504?v=3","gravatar_id":"","url":"https://api.github.com/users/LSST","html_url":"https://github.com/LSST","followers_url":"https://api.github.com/users/LSST/followers","following_url":"https://api.github.com/users/LSST/following{/other_user}","gists_url":"https://api.github.com/users/LSST/gists{/gist_id}","starred_url":"https://api.github.com/users/LSST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LSST/subscriptions","organizations_url":"https://api.github.com/users/LSST/orgs","repos_url":"https://api.github.com/users/LSST/repos","events_url":"https://api.github.com/users/LSST/events{/privacy}","received_events_url":"https://api.github.com/users/LSST/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LSST/sg","description":null,"fork":false,"url":"https://api.github.com/repos/LSST/sg","forks_url":"https://api.github.com/repos/LSST/sg/forks","keys_url":"https://api.github.com/repos/LSST/sg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LSST/sg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LSST/sg/teams","hooks_url":"https://api.github.com/repos/LSST/sg/hooks","issue_events_url":"https://api.github.com/repos/LSST/sg/issues/events{/number}","events_url":"https://api.github.com/repos/LSST/sg/events","assignees_url":"https://api.github.com/repos/LSST/sg/assignees{/user}","branches_url":"https://api.github.com/repos/LSST/sg/branches{/branch}","tags_url":"https://api.github.com/repos/LSST/sg/tags","blobs_url":"https://api.github.com/repos/LSST/sg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LSST/sg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LSST/sg/git/refs{/sha}","trees_url":"https://api.github.com/repos/LSST/sg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LSST/sg/statuses/{sha}","languages_url":"https://api.github.com/repos/LSST/sg/languages","stargazers_url":"https://api.github.com/repos/LSST/sg/stargazers","contributors_url":"https://api.github.com/repos/LSST/sg/contributors","subscribers_url":"https://api.github.com/repos/LSST/sg/subscribers","subscription_url":"https://api.github.com/repos/LSST/sg/subscription","commits_url":"https://api.github.com/repos/LSST/sg/commits{/sha}","git_commits_url":"https://api.github.com/repos/LSST/sg/git/commits{/sha}","comments_url":"https://api.github.com/repos/LSST/sg/comments{/number}","issue_comment_url":"https://api.github.com/repos/LSST/sg/issues/comments/{number}","contents_url":"https://api.github.com/repos/LSST/sg/contents/{+path}","compare_url":"https://api.github.com/repos/LSST/sg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LSST/sg/merges","archive_url":"https://api.github.com/repos/LSST/sg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LSST/sg/downloads","issues_url":"https://api.github.com/repos/LSST/sg/issues{/number}","pulls_url":"https://api.github.com/repos/LSST/sg/pulls{/number}","milestones_url":"https://api.github.com/repos/LSST/sg/milestones{/number}","notifications_url":"https://api.github.com/repos/LSST/sg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LSST/sg/labels{/name}","releases_url":"https://api.github.com/repos/LSST/sg/releases{/id}","created_at":"2015-02-04T19:27:06Z","updated_at":"2015-02-04T19:27:06Z","pushed_at":"2015-02-06T01:17:07Z","git_url":"git://github.com/LSST/sg.git","ssh_url":"git@github.com:LSST/sg.git","clone_url":"https://github.com/LSST/sg.git","svn_url":"https://github.com/LSST/sg","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LSST/sg/pulls/1"},"html":{"href":"https://github.com/LSST/sg/pull/1"},"issue":{"href":"https://api.github.com/repos/LSST/sg/issues/1"},"comments":{"href":"https://api.github.com/repos/LSST/sg/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/LSST/sg/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/LSST/sg/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/LSST/sg/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/LSST/sg/statuses/10a5788e367c0e18c3954d1ec381152cf4ed517f"}}}}