Matrix Math Helper
Provides helper methods for converting transform operations into a matrix and then into a list of translate, scale and rotate commands.
Functions
Inverse of a matrix. Multiplying by the inverse is used in matrix math instead of division.
Based on: http://tog.acm.org/resources/GraphicsGems/gemsii/unmatrix.c
Turns columns into rows and rows into columns.
From: http://www.opensource.apple.com/source/WebCore/WebCore-514/platform/graphics/transforms/TransformationMatrix.cpp
From: http://www.opensource.apple.com/source/WebCore/WebCore-514/platform/graphics/transforms/TransformationMatrix.cpp
The dot product of a and b, two 3-element vectors. From: https://code.google.com/p/webgl-mjs/source/browse/mjs.js
From: https://code.google.com/p/webgl-mjs/source/browse/mjs.js
Based on: https://code.google.com/p/webgl-mjs/source/browse/mjs.js