{"action":"created","comment":{"url":"https://api.github.com/repos/beardgame/utilities/pulls/comments/27769186","id":27769186,"diff_hunk":"@@ -158,7 +188,12 @@ public static float Hermite(float value1, float tangent1, float value2, float ta\n         /// <returns>The interpolated value.</returns>\n         public static float SmoothStep(float from, float to, float t)\n         {\n-            return Interpolate.Hermite(from, 0, to, 0, t.Clamped(0, 1));\n+            if (t <= 0)","path":"src/Math/Interpolate.cs","position":95,"original_position":95,"commit_id":"ebb6cb9bf5cce74578a6f17031b5b142b2b73c9f","original_commit_id":"ebb6cb9bf5cce74578a6f17031b5b142b2b73c9f","user":{"login":"tomrijnbeek","id":828553,"avatar_url":"https://avatars.githubusercontent.com/u/828553?v=3","gravatar_id":"","url":"https://api.github.com/users/tomrijnbeek","html_url":"https://github.com/tomrijnbeek","followers_url":"https://api.github.com/users/tomrijnbeek/followers","following_url":"https://api.github.com/users/tomrijnbeek/following{/other_user}","gists_url":"https://api.github.com/users/tomrijnbeek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomrijnbeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomrijnbeek/subscriptions","organizations_url":"https://api.github.com/users/tomrijnbeek/orgs","repos_url":"https://api.github.com/users/tomrijnbeek/repos","events_url":"https://api.github.com/users/tomrijnbeek/events{/privacy}","received_events_url":"https://api.github.com/users/tomrijnbeek/received_events","type":"User","site_admin":false},"body":"These checks only add more overhead, as the `Hermite` function already checks for these. Of course this would get rid of one extra call for these edge cases, but in the meanwhile adding more overhead for intermediate steps.","created_at":"2015-04-04T14:13:45Z","updated_at":"2015-04-04T14:13:45Z","html_url":"https://github.com/beardgame/utilities/pull/28#discussion_r27769186","pull_request_url":"https://api.github.com/repos/beardgame/utilities/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/beardgame/utilities/pulls/comments/27769186"},"html":{"href":"https://github.com/beardgame/utilities/pull/28#discussion_r27769186"},"pull_request":{"href":"https://api.github.com/repos/beardgame/utilities/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/beardgame/utilities/pulls/28","id":32633428,"html_url":"https://github.com/beardgame/utilities/pull/28","diff_url":"https://github.com/beardgame/utilities/pull/28.diff","patch_url":"https://github.com/beardgame/utilities/pull/28.patch","issue_url":"https://api.github.com/repos/beardgame/utilities/issues/28","number":28,"state":"open","locked":false,"title":"small optimisations for interpolation edge cases","user":{"login":"amulware","id":3987892,"avatar_url":"https://avatars.githubusercontent.com/u/3987892?v=3","gravatar_id":"","url":"https://api.github.com/users/amulware","html_url":"https://github.com/amulware","followers_url":"https://api.github.com/users/amulware/followers","following_url":"https://api.github.com/users/amulware/following{/other_user}","gists_url":"https://api.github.com/users/amulware/gists{/gist_id}","starred_url":"https://api.github.com/users/amulware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amulware/subscriptions","organizations_url":"https://api.github.com/users/amulware/orgs","repos_url":"https://api.github.com/users/amulware/repos","events_url":"https://api.github.com/users/amulware/events{/privacy}","received_events_url":"https://api.github.com/users/amulware/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-04T13:19:04Z","updated_at":"2015-04-04T14:13:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"98e1c86e18b834748aefebcf9f1fc153ba7a45ff","assignee":{"login":"tomrijnbeek","id":828553,"avatar_url":"https://avatars.githubusercontent.com/u/828553?v=3","gravatar_id":"","url":"https://api.github.com/users/tomrijnbeek","html_url":"https://github.com/tomrijnbeek","followers_url":"https://api.github.com/users/tomrijnbeek/followers","following_url":"https://api.github.com/users/tomrijnbeek/following{/other_user}","gists_url":"https://api.github.com/users/tomrijnbeek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomrijnbeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomrijnbeek/subscriptions","organizations_url":"https://api.github.com/users/tomrijnbeek/orgs","repos_url":"https://api.github.com/users/tomrijnbeek/repos","events_url":"https://api.github.com/users/tomrijnbeek/events{/privacy}","received_events_url":"https://api.github.com/users/tomrijnbeek/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/beardgame/utilities/pulls/28/commits","review_comments_url":"https://api.github.com/repos/beardgame/utilities/pulls/28/comments","review_comment_url":"https://api.github.com/repos/beardgame/utilities/pulls/comments{/number}","comments_url":"https://api.github.com/repos/beardgame/utilities/issues/28/comments","statuses_url":"https://api.github.com/repos/beardgame/utilities/statuses/ebb6cb9bf5cce74578a6f17031b5b142b2b73c9f","head":{"label":"amulware:issue8-bezier-edge-cases","ref":"issue8-bezier-edge-cases","sha":"ebb6cb9bf5cce74578a6f17031b5b142b2b73c9f","user":{"login":"amulware","id":3987892,"avatar_url":"https://avatars.githubusercontent.com/u/3987892?v=3","gravatar_id":"","url":"https://api.github.com/users/amulware","html_url":"https://github.com/amulware","followers_url":"https://api.github.com/users/amulware/followers","following_url":"https://api.github.com/users/amulware/following{/other_user}","gists_url":"https://api.github.com/users/amulware/gists{/gist_id}","starred_url":"https://api.github.com/users/amulware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amulware/subscriptions","organizations_url":"https://api.github.com/users/amulware/orgs","repos_url":"https://api.github.com/users/amulware/repos","events_url":"https://api.github.com/users/amulware/events{/privacy}","received_events_url":"https://api.github.com/users/amulware/received_events","type":"User","site_admin":false},"repo":{"id":30962485,"name":"utilities","full_name":"amulware/utilities","owner":{"login":"amulware","id":3987892,"avatar_url":"https://avatars.githubusercontent.com/u/3987892?v=3","gravatar_id":"","url":"https://api.github.com/users/amulware","html_url":"https://github.com/amulware","followers_url":"https://api.github.com/users/amulware/followers","following_url":"https://api.github.com/users/amulware/following{/other_user}","gists_url":"https://api.github.com/users/amulware/gists{/gist_id}","starred_url":"https://api.github.com/users/amulware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amulware/subscriptions","organizations_url":"https://api.github.com/users/amulware/orgs","repos_url":"https://api.github.com/users/amulware/repos","events_url":"https://api.github.com/users/amulware/events{/privacy}","received_events_url":"https://api.github.com/users/amulware/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amulware/utilities","description":"My fork of Beardgame/utilities where I add and experiment with new features","fork":true,"url":"https://api.github.com/repos/amulware/utilities","forks_url":"https://api.github.com/repos/amulware/utilities/forks","keys_url":"https://api.github.com/repos/amulware/utilities/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amulware/utilities/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amulware/utilities/teams","hooks_url":"https://api.github.com/repos/amulware/utilities/hooks","issue_events_url":"https://api.github.com/repos/amulware/utilities/issues/events{/number}","events_url":"https://api.github.com/repos/amulware/utilities/events","assignees_url":"https://api.github.com/repos/amulware/utilities/assignees{/user}","branches_url":"https://api.github.com/repos/amulware/utilities/branches{/branch}","tags_url":"https://api.github.com/repos/amulware/utilities/tags","blobs_url":"https://api.github.com/repos/amulware/utilities/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amulware/utilities/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amulware/utilities/git/refs{/sha}","trees_url":"https://api.github.com/repos/amulware/utilities/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amulware/utilities/statuses/{sha}","languages_url":"https://api.github.com/repos/amulware/utilities/languages","stargazers_url":"https://api.github.com/repos/amulware/utilities/stargazers","contributors_url":"https://api.github.com/repos/amulware/utilities/contributors","subscribers_url":"https://api.github.com/repos/amulware/utilities/subscribers","subscription_url":"https://api.github.com/repos/amulware/utilities/subscription","commits_url":"https://api.github.com/repos/amulware/utilities/commits{/sha}","git_commits_url":"https://api.github.com/repos/amulware/utilities/git/commits{/sha}","comments_url":"https://api.github.com/repos/amulware/utilities/comments{/number}","issue_comment_url":"https://api.github.com/repos/amulware/utilities/issues/comments{/number}","contents_url":"https://api.github.com/repos/amulware/utilities/contents/{+path}","compare_url":"https://api.github.com/repos/amulware/utilities/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amulware/utilities/merges","archive_url":"https://api.github.com/repos/amulware/utilities/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amulware/utilities/downloads","issues_url":"https://api.github.com/repos/amulware/utilities/issues{/number}","pulls_url":"https://api.github.com/repos/amulware/utilities/pulls{/number}","milestones_url":"https://api.github.com/repos/amulware/utilities/milestones{/number}","notifications_url":"https://api.github.com/repos/amulware/utilities/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amulware/utilities/labels{/name}","releases_url":"https://api.github.com/repos/amulware/utilities/releases{/id}","created_at":"2015-02-18T11:14:45Z","updated_at":"2015-03-26T09:38:06Z","pushed_at":"2015-04-04T13:18:16Z","git_url":"git://github.com/amulware/utilities.git","ssh_url":"git@github.com:amulware/utilities.git","clone_url":"https://github.com/amulware/utilities.git","svn_url":"https://github.com/amulware/utilities","homepage":"","size":2425,"stargazers_count":2,"watchers_count":2,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"develop"}},"base":{"label":"beardgame:develop","ref":"develop","sha":"709604c6e11c9dc533becf878b1e332f25ec0fd3","user":{"login":"beardgame","id":11058788,"avatar_url":"https://avatars.githubusercontent.com/u/11058788?v=3","gravatar_id":"","url":"https://api.github.com/users/beardgame","html_url":"https://github.com/beardgame","followers_url":"https://api.github.com/users/beardgame/followers","following_url":"https://api.github.com/users/beardgame/following{/other_user}","gists_url":"https://api.github.com/users/beardgame/gists{/gist_id}","starred_url":"https://api.github.com/users/beardgame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beardgame/subscriptions","organizations_url":"https://api.github.com/users/beardgame/orgs","repos_url":"https://api.github.com/users/beardgame/repos","events_url":"https://api.github.com/users/beardgame/events{/privacy}","received_events_url":"https://api.github.com/users/beardgame/received_events","type":"Organization","site_admin":false},"repo":{"id":30962473,"name":"utilities","full_name":"beardgame/utilities","owner":{"login":"beardgame","id":11058788,"avatar_url":"https://avatars.githubusercontent.com/u/11058788?v=3","gravatar_id":"","url":"https://api.github.com/users/beardgame","html_url":"https://github.com/beardgame","followers_url":"https://api.github.com/users/beardgame/followers","following_url":"https://api.github.com/users/beardgame/following{/other_user}","gists_url":"https://api.github.com/users/beardgame/gists{/gist_id}","starred_url":"https://api.github.com/users/beardgame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beardgame/subscriptions","organizations_url":"https://api.github.com/users/beardgame/orgs","repos_url":"https://api.github.com/users/beardgame/repos","events_url":"https://api.github.com/users/beardgame/events{/privacy}","received_events_url":"https://api.github.com/users/beardgame/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/beardgame/utilities","description":"General C# (game) utilities library, containing a variety of useful types and algorithms","fork":false,"url":"https://api.github.com/repos/beardgame/utilities","forks_url":"https://api.github.com/repos/beardgame/utilities/forks","keys_url":"https://api.github.com/repos/beardgame/utilities/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beardgame/utilities/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beardgame/utilities/teams","hooks_url":"https://api.github.com/repos/beardgame/utilities/hooks","issue_events_url":"https://api.github.com/repos/beardgame/utilities/issues/events{/number}","events_url":"https://api.github.com/repos/beardgame/utilities/events","assignees_url":"https://api.github.com/repos/beardgame/utilities/assignees{/user}","branches_url":"https://api.github.com/repos/beardgame/utilities/branches{/branch}","tags_url":"https://api.github.com/repos/beardgame/utilities/tags","blobs_url":"https://api.github.com/repos/beardgame/utilities/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beardgame/utilities/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beardgame/utilities/git/refs{/sha}","trees_url":"https://api.github.com/repos/beardgame/utilities/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beardgame/utilities/statuses/{sha}","languages_url":"https://api.github.com/repos/beardgame/utilities/languages","stargazers_url":"https://api.github.com/repos/beardgame/utilities/stargazers","contributors_url":"https://api.github.com/repos/beardgame/utilities/contributors","subscribers_url":"https://api.github.com/repos/beardgame/utilities/subscribers","subscription_url":"https://api.github.com/repos/beardgame/utilities/subscription","commits_url":"https://api.github.com/repos/beardgame/utilities/commits{/sha}","git_commits_url":"https://api.github.com/repos/beardgame/utilities/git/commits{/sha}","comments_url":"https://api.github.com/repos/beardgame/utilities/comments{/number}","issue_comment_url":"https://api.github.com/repos/beardgame/utilities/issues/comments{/number}","contents_url":"https://api.github.com/repos/beardgame/utilities/contents/{+path}","compare_url":"https://api.github.com/repos/beardgame/utilities/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beardgame/utilities/merges","archive_url":"https://api.github.com/repos/beardgame/utilities/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beardgame/utilities/downloads","issues_url":"https://api.github.com/repos/beardgame/utilities/issues{/number}","pulls_url":"https://api.github.com/repos/beardgame/utilities/pulls{/number}","milestones_url":"https://api.github.com/repos/beardgame/utilities/milestones{/number}","notifications_url":"https://api.github.com/repos/beardgame/utilities/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beardgame/utilities/labels{/name}","releases_url":"https://api.github.com/repos/beardgame/utilities/releases{/id}","created_at":"2015-02-18T11:14:30Z","updated_at":"2015-03-26T09:37:21Z","pushed_at":"2015-04-04T13:19:04Z","git_url":"git://github.com/beardgame/utilities.git","ssh_url":"git@github.com:beardgame/utilities.git","clone_url":"https://github.com/beardgame/utilities.git","svn_url":"https://github.com/beardgame/utilities","homepage":"","size":2493,"stargazers_count":2,"watchers_count":2,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/beardgame/utilities/pulls/28"},"html":{"href":"https://github.com/beardgame/utilities/pull/28"},"issue":{"href":"https://api.github.com/repos/beardgame/utilities/issues/28"},"comments":{"href":"https://api.github.com/repos/beardgame/utilities/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/beardgame/utilities/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/beardgame/utilities/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/beardgame/utilities/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/beardgame/utilities/statuses/ebb6cb9bf5cce74578a6f17031b5b142b2b73c9f"}}}}