{"action":"opened","issue":{"url":"https://api.github.com/repos/greggman/twgl.js/issues/17","labels_url":"https://api.github.com/repos/greggman/twgl.js/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/greggman/twgl.js/issues/17/comments","events_url":"https://api.github.com/repos/greggman/twgl.js/issues/17/events","html_url":"https://github.com/greggman/twgl.js/issues/17","id":118504136,"number":17,"title":"m4 multiplication","user":{"login":"mseefelder","id":5778500,"avatar_url":"https://avatars.githubusercontent.com/u/5778500?v=3","gravatar_id":"","url":"https://api.github.com/users/mseefelder","html_url":"https://github.com/mseefelder","followers_url":"https://api.github.com/users/mseefelder/followers","following_url":"https://api.github.com/users/mseefelder/following{/other_user}","gists_url":"https://api.github.com/users/mseefelder/gists{/gist_id}","starred_url":"https://api.github.com/users/mseefelder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mseefelder/subscriptions","organizations_url":"https://api.github.com/users/mseefelder/orgs","repos_url":"https://api.github.com/users/mseefelder/repos","events_url":"https://api.github.com/users/mseefelder/events{/privacy}","received_events_url":"https://api.github.com/users/mseefelder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-24T00:17:42Z","updated_at":"2015-11-24T00:17:42Z","closed_at":null,"body":"I'm quite confused about m4.multilpy().\r\n\r\nIt looks like the whole m4 is planned with column-major storage in mind (at least it`s what it looks like from reading the code), and this is cool, considering OpenGL defaults to this. \r\n\r\nBut when it comes to multiplication, the function does something that looks like: \r\n\r\n> m4.multiply(A,B) = A<sup>T</sup>B<sup>T</sup> = (BA)<sup>T</sup> \r\n\r\nbecause it multiplies A's columns with B's rows (the opposite would be the usual way, i think).\r\n\r\nWhat triggered this questioning in me was the fact that in the twgl cube example, you built the **worldViewProjection** matrix by multiplying in reverse order *(world * view * projection)* compared to most of the literature about **modelViewProjection** matrices *(projection * view * model)*.\r\n\r\nIs this the intention? Am I just messing things up?"}}