{"action":"created","comment":{"url":"https://api.github.com/repos/css-typed-om/typed-om/pulls/comments/47578011","id":47578011,"diff_hunk":"@@ -0,0 +1,121 @@\n+// Copyright 2015 Google Inc. All rights reserved.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+//     You may obtain a copy of the License at\n+//\n+// http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+//     See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+(function(internal, scope) {\n+\n+  // Note: A Matrix is stored and referenced in column-major order.\n+  // TODO: Update the names of parameters (a, b, ... , p) once they are changed\n+  // in the specifications and add getters for these parameters.\n+  function Matrix(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) {\n+    if (arguments.length != 6 && arguments.length != 16) {\n+      throw new TypeError('Expecting 6 or 16 arguments.');\n+    }\n+\n+    this._matrix = [];\n+    for (var index = 0; index < arguments.length; index++) {","path":"src/matrix.js","position":26,"original_position":26,"commit_id":"9a3adbccd81d1e17de17f187cbc9ea04909475de","original_commit_id":"9a3adbccd81d1e17de17f187cbc9ea04909475de","user":{"login":"wilddamon","id":1373458,"avatar_url":"https://avatars.githubusercontent.com/u/1373458?v=3","gravatar_id":"","url":"https://api.github.com/users/wilddamon","html_url":"https://github.com/wilddamon","followers_url":"https://api.github.com/users/wilddamon/followers","following_url":"https://api.github.com/users/wilddamon/following{/other_user}","gists_url":"https://api.github.com/users/wilddamon/gists{/gist_id}","starred_url":"https://api.github.com/users/wilddamon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilddamon/subscriptions","organizations_url":"https://api.github.com/users/wilddamon/orgs","repos_url":"https://api.github.com/users/wilddamon/repos","events_url":"https://api.github.com/users/wilddamon/events{/privacy}","received_events_url":"https://api.github.com/users/wilddamon/received_events","type":"User","site_admin":false},"body":"It's more common just to use \"i\" as the variable name here.","created_at":"2015-12-14T23:50:26Z","updated_at":"2015-12-14T23:50:26Z","html_url":"https://github.com/css-typed-om/typed-om/pull/38#discussion_r47578011","pull_request_url":"https://api.github.com/repos/css-typed-om/typed-om/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/css-typed-om/typed-om/pulls/comments/47578011"},"html":{"href":"https://github.com/css-typed-om/typed-om/pull/38#discussion_r47578011"},"pull_request":{"href":"https://api.github.com/repos/css-typed-om/typed-om/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/css-typed-om/typed-om/pulls/38","id":53532515,"html_url":"https://github.com/css-typed-om/typed-om/pull/38","diff_url":"https://github.com/css-typed-om/typed-om/pull/38.diff","patch_url":"https://github.com/css-typed-om/typed-om/pull/38.patch","issue_url":"https://api.github.com/repos/css-typed-om/typed-om/issues/38","number":38,"state":"open","locked":false,"title":"Add TransformComponent and Matrix","user":{"login":"nattridgell","id":7471833,"avatar_url":"https://avatars.githubusercontent.com/u/7471833?v=3","gravatar_id":"","url":"https://api.github.com/users/nattridgell","html_url":"https://github.com/nattridgell","followers_url":"https://api.github.com/users/nattridgell/followers","following_url":"https://api.github.com/users/nattridgell/following{/other_user}","gists_url":"https://api.github.com/users/nattridgell/gists{/gist_id}","starred_url":"https://api.github.com/users/nattridgell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nattridgell/subscriptions","organizations_url":"https://api.github.com/users/nattridgell/orgs","repos_url":"https://api.github.com/users/nattridgell/repos","events_url":"https://api.github.com/users/nattridgell/events{/privacy}","received_events_url":"https://api.github.com/users/nattridgell/received_events","type":"User","site_admin":false},"body":"Adds:\r\n - TransformComponent\r\n - Very basic TransformComponent tests\r\n - Matrix (for transforms)\r\n - Matrix.multiply functions for multiplying 2D and 3D matrices\r\n   Note: Will be needed by TransformValue\r\n - Matrix.is2DComponent function\r\n - many tests for matrix multiplication using\r\n   precomputed results","created_at":"2015-12-14T07:35:06Z","updated_at":"2015-12-14T23:50:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e6336660ff9a29bb48421973ad5d4882eaaf040","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/css-typed-om/typed-om/pulls/38/commits","review_comments_url":"https://api.github.com/repos/css-typed-om/typed-om/pulls/38/comments","review_comment_url":"https://api.github.com/repos/css-typed-om/typed-om/pulls/comments{/number}","comments_url":"https://api.github.com/repos/css-typed-om/typed-om/issues/38/comments","statuses_url":"https://api.github.com/repos/css-typed-om/typed-om/statuses/9a3adbccd81d1e17de17f187cbc9ea04909475de","head":{"label":"nattridgell:transformComponents","ref":"transformComponents","sha":"9a3adbccd81d1e17de17f187cbc9ea04909475de","user":{"login":"nattridgell","id":7471833,"avatar_url":"https://avatars.githubusercontent.com/u/7471833?v=3","gravatar_id":"","url":"https://api.github.com/users/nattridgell","html_url":"https://github.com/nattridgell","followers_url":"https://api.github.com/users/nattridgell/followers","following_url":"https://api.github.com/users/nattridgell/following{/other_user}","gists_url":"https://api.github.com/users/nattridgell/gists{/gist_id}","starred_url":"https://api.github.com/users/nattridgell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nattridgell/subscriptions","organizations_url":"https://api.github.com/users/nattridgell/orgs","repos_url":"https://api.github.com/users/nattridgell/repos","events_url":"https://api.github.com/users/nattridgell/events{/privacy}","received_events_url":"https://api.github.com/users/nattridgell/received_events","type":"User","site_admin":false},"repo":{"id":46757900,"name":"typed-om","full_name":"nattridgell/typed-om","owner":{"login":"nattridgell","id":7471833,"avatar_url":"https://avatars.githubusercontent.com/u/7471833?v=3","gravatar_id":"","url":"https://api.github.com/users/nattridgell","html_url":"https://github.com/nattridgell","followers_url":"https://api.github.com/users/nattridgell/followers","following_url":"https://api.github.com/users/nattridgell/following{/other_user}","gists_url":"https://api.github.com/users/nattridgell/gists{/gist_id}","starred_url":"https://api.github.com/users/nattridgell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nattridgell/subscriptions","organizations_url":"https://api.github.com/users/nattridgell/orgs","repos_url":"https://api.github.com/users/nattridgell/repos","events_url":"https://api.github.com/users/nattridgell/events{/privacy}","received_events_url":"https://api.github.com/users/nattridgell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nattridgell/typed-om","description":"Prototype for CSS Typed OM","fork":true,"url":"https://api.github.com/repos/nattridgell/typed-om","forks_url":"https://api.github.com/repos/nattridgell/typed-om/forks","keys_url":"https://api.github.com/repos/nattridgell/typed-om/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nattridgell/typed-om/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nattridgell/typed-om/teams","hooks_url":"https://api.github.com/repos/nattridgell/typed-om/hooks","issue_events_url":"https://api.github.com/repos/nattridgell/typed-om/issues/events{/number}","events_url":"https://api.github.com/repos/nattridgell/typed-om/events","assignees_url":"https://api.github.com/repos/nattridgell/typed-om/assignees{/user}","branches_url":"https://api.github.com/repos/nattridgell/typed-om/branches{/branch}","tags_url":"https://api.github.com/repos/nattridgell/typed-om/tags","blobs_url":"https://api.github.com/repos/nattridgell/typed-om/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nattridgell/typed-om/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nattridgell/typed-om/git/refs{/sha}","trees_url":"https://api.github.com/repos/nattridgell/typed-om/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nattridgell/typed-om/statuses/{sha}","languages_url":"https://api.github.com/repos/nattridgell/typed-om/languages","stargazers_url":"https://api.github.com/repos/nattridgell/typed-om/stargazers","contributors_url":"https://api.github.com/repos/nattridgell/typed-om/contributors","subscribers_url":"https://api.github.com/repos/nattridgell/typed-om/subscribers","subscription_url":"https://api.github.com/repos/nattridgell/typed-om/subscription","commits_url":"https://api.github.com/repos/nattridgell/typed-om/commits{/sha}","git_commits_url":"https://api.github.com/repos/nattridgell/typed-om/git/commits{/sha}","comments_url":"https://api.github.com/repos/nattridgell/typed-om/comments{/number}","issue_comment_url":"https://api.github.com/repos/nattridgell/typed-om/issues/comments{/number}","contents_url":"https://api.github.com/repos/nattridgell/typed-om/contents/{+path}","compare_url":"https://api.github.com/repos/nattridgell/typed-om/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nattridgell/typed-om/merges","archive_url":"https://api.github.com/repos/nattridgell/typed-om/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nattridgell/typed-om/downloads","issues_url":"https://api.github.com/repos/nattridgell/typed-om/issues{/number}","pulls_url":"https://api.github.com/repos/nattridgell/typed-om/pulls{/number}","milestones_url":"https://api.github.com/repos/nattridgell/typed-om/milestones{/number}","notifications_url":"https://api.github.com/repos/nattridgell/typed-om/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nattridgell/typed-om/labels{/name}","releases_url":"https://api.github.com/repos/nattridgell/typed-om/releases{/id}","created_at":"2015-11-24T01:00:17Z","updated_at":"2015-11-24T01:00:17Z","pushed_at":"2015-12-14T08:01:12Z","git_url":"git://github.com/nattridgell/typed-om.git","ssh_url":"git@github.com:nattridgell/typed-om.git","clone_url":"https://github.com/nattridgell/typed-om.git","svn_url":"https://github.com/nattridgell/typed-om","homepage":null,"size":137,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":0,"default_branch":"master"}},"base":{"label":"css-typed-om:master","ref":"master","sha":"5fc3c625628e5b96a12b022317160776549ae4f0","user":{"login":"css-typed-om","id":15916862,"avatar_url":"https://avatars.githubusercontent.com/u/15916862?v=3","gravatar_id":"","url":"https://api.github.com/users/css-typed-om","html_url":"https://github.com/css-typed-om","followers_url":"https://api.github.com/users/css-typed-om/followers","following_url":"https://api.github.com/users/css-typed-om/following{/other_user}","gists_url":"https://api.github.com/users/css-typed-om/gists{/gist_id}","starred_url":"https://api.github.com/users/css-typed-om/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/css-typed-om/subscriptions","organizations_url":"https://api.github.com/users/css-typed-om/orgs","repos_url":"https://api.github.com/users/css-typed-om/repos","events_url":"https://api.github.com/users/css-typed-om/events{/privacy}","received_events_url":"https://api.github.com/users/css-typed-om/received_events","type":"Organization","site_admin":false},"repo":{"id":46456802,"name":"typed-om","full_name":"css-typed-om/typed-om","owner":{"login":"css-typed-om","id":15916862,"avatar_url":"https://avatars.githubusercontent.com/u/15916862?v=3","gravatar_id":"","url":"https://api.github.com/users/css-typed-om","html_url":"https://github.com/css-typed-om","followers_url":"https://api.github.com/users/css-typed-om/followers","following_url":"https://api.github.com/users/css-typed-om/following{/other_user}","gists_url":"https://api.github.com/users/css-typed-om/gists{/gist_id}","starred_url":"https://api.github.com/users/css-typed-om/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/css-typed-om/subscriptions","organizations_url":"https://api.github.com/users/css-typed-om/orgs","repos_url":"https://api.github.com/users/css-typed-om/repos","events_url":"https://api.github.com/users/css-typed-om/events{/privacy}","received_events_url":"https://api.github.com/users/css-typed-om/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/css-typed-om/typed-om","description":"Prototype for CSS Typed OM","fork":false,"url":"https://api.github.com/repos/css-typed-om/typed-om","forks_url":"https://api.github.com/repos/css-typed-om/typed-om/forks","keys_url":"https://api.github.com/repos/css-typed-om/typed-om/keys{/key_id}","collaborators_url":"https://api.github.com/repos/css-typed-om/typed-om/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/css-typed-om/typed-om/teams","hooks_url":"https://api.github.com/repos/css-typed-om/typed-om/hooks","issue_events_url":"https://api.github.com/repos/css-typed-om/typed-om/issues/events{/number}","events_url":"https://api.github.com/repos/css-typed-om/typed-om/events","assignees_url":"https://api.github.com/repos/css-typed-om/typed-om/assignees{/user}","branches_url":"https://api.github.com/repos/css-typed-om/typed-om/branches{/branch}","tags_url":"https://api.github.com/repos/css-typed-om/typed-om/tags","blobs_url":"https://api.github.com/repos/css-typed-om/typed-om/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/css-typed-om/typed-om/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/css-typed-om/typed-om/git/refs{/sha}","trees_url":"https://api.github.com/repos/css-typed-om/typed-om/git/trees{/sha}","statuses_url":"https://api.github.com/repos/css-typed-om/typed-om/statuses/{sha}","languages_url":"https://api.github.com/repos/css-typed-om/typed-om/languages","stargazers_url":"https://api.github.com/repos/css-typed-om/typed-om/stargazers","contributors_url":"https://api.github.com/repos/css-typed-om/typed-om/contributors","subscribers_url":"https://api.github.com/repos/css-typed-om/typed-om/subscribers","subscription_url":"https://api.github.com/repos/css-typed-om/typed-om/subscription","commits_url":"https://api.github.com/repos/css-typed-om/typed-om/commits{/sha}","git_commits_url":"https://api.github.com/repos/css-typed-om/typed-om/git/commits{/sha}","comments_url":"https://api.github.com/repos/css-typed-om/typed-om/comments{/number}","issue_comment_url":"https://api.github.com/repos/css-typed-om/typed-om/issues/comments{/number}","contents_url":"https://api.github.com/repos/css-typed-om/typed-om/contents/{+path}","compare_url":"https://api.github.com/repos/css-typed-om/typed-om/compare/{base}...{head}","merges_url":"https://api.github.com/repos/css-typed-om/typed-om/merges","archive_url":"https://api.github.com/repos/css-typed-om/typed-om/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/css-typed-om/typed-om/downloads","issues_url":"https://api.github.com/repos/css-typed-om/typed-om/issues{/number}","pulls_url":"https://api.github.com/repos/css-typed-om/typed-om/pulls{/number}","milestones_url":"https://api.github.com/repos/css-typed-om/typed-om/milestones{/number}","notifications_url":"https://api.github.com/repos/css-typed-om/typed-om/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/css-typed-om/typed-om/labels{/name}","releases_url":"https://api.github.com/repos/css-typed-om/typed-om/releases{/id}","created_at":"2015-11-19T00:34:31Z","updated_at":"2015-11-27T03:40:55Z","pushed_at":"2015-12-14T23:46:31Z","git_url":"git://github.com/css-typed-om/typed-om.git","ssh_url":"git@github.com:css-typed-om/typed-om.git","clone_url":"https://github.com/css-typed-om/typed-om.git","svn_url":"https://github.com/css-typed-om/typed-om","homepage":null,"size":601,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/css-typed-om/typed-om/pulls/38"},"html":{"href":"https://github.com/css-typed-om/typed-om/pull/38"},"issue":{"href":"https://api.github.com/repos/css-typed-om/typed-om/issues/38"},"comments":{"href":"https://api.github.com/repos/css-typed-om/typed-om/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/css-typed-om/typed-om/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/css-typed-om/typed-om/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/css-typed-om/typed-om/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/css-typed-om/typed-om/statuses/9a3adbccd81d1e17de17f187cbc9ea04909475de"}}}}