diff options
author | petersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-16 22:59:21 +0000 |
---|---|---|
committer | petersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-16 22:59:21 +0000 |
commit | 32bb025b1c29269cfc7183e3a538a30054fce90a (patch) | |
tree | 901ceaba4ed0bba3b71613b36d66ee1e21fe7965 /o3d/samples/o3djs/plugin_math.js | |
parent | 04196d7086c7f8544bf96af7bfecc122d03c02b8 (diff) | |
download | chromium_src-32bb025b1c29269cfc7183e3a538a30054fce90a.zip chromium_src-32bb025b1c29269cfc7183e3a538a30054fce90a.tar.gz chromium_src-32bb025b1c29269cfc7183e3a538a30054fce90a.tar.bz2 |
Tidied up types to appease doc generator script for new version of o3djs/math.js. I think this should also fix the currently broken tree.
Review URL: http://codereview.chromium.org/3443007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59745 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/samples/o3djs/plugin_math.js')
-rw-r--r-- | o3d/samples/o3djs/plugin_math.js | 89 |
1 files changed, 2 insertions, 87 deletions
diff --git a/o3d/samples/o3djs/plugin_math.js b/o3d/samples/o3djs/plugin_math.js index 799ce78..25ce285 100644 --- a/o3d/samples/o3djs/plugin_math.js +++ b/o3d/samples/o3djs/plugin_math.js @@ -99,7 +99,8 @@ * */ -o3djs.provide('o3djs.math'); +o3djs.provide('o3djs.math', true); + /** * A module for math for o3djs.math. @@ -121,92 +122,6 @@ o3djs.math.randomSeed_ = 0; */ o3djs.math.RANDOM_RANGE_ = Math.pow(2, 32); -/** - * Functions which deal with 4-by-4 transformation matrices are kept in their - * own namespsace. - * @namespace - */ -o3djs.math.matrix4 = o3djs.math.matrix4 || {}; - -/** - * Functions that are specifically row major are kept in their own namespace. - * @namespace - */ -o3djs.math.rowMajor = o3djs.math.rowMajor || {}; - -/** - * Functions that are specifically column major are kept in their own namespace. - * @namespace - */ -o3djs.math.columnMajor = o3djs.math.columnMajor || {}; - -/** - * Functions that do error checking are stored in their own namespace. - * @namespace - */ -o3djs.math.errorCheck = o3djs.math.errorCheck || {}; - -/** - * Functions that do no error checking and have a separate version that does in - * o3djs.math.errorCheck are stored in their own namespace. - * @namespace - */ -o3djs.math.errorCheckFree = o3djs.math.errorCheckFree || {}; - -/** - * An Array of 2 floats - * @type {(!Array.<number>|!o3d.Float2)} - */ -o3djs.math.Vector2 = goog.typedef; - -/** - * An Array of 3 floats - * @type {(!Array.<number>|!o3d.Float3)} - */ -o3djs.math.Vector3 = goog.typedef; - -/** - * An Array of 4 floats - * @type {(!Array.<number>|!o3d.Float4)} - */ -o3djs.math.Vector4 = goog.typedef; - -/** - * An Array of floats. - * @type {!Array.<number>} - */ -o3djs.math.Vector = goog.typedef; - -/** - * A 1x1 Matrix of floats - * @type {!Array.<!Array.<number>>} - */ -o3djs.math.Matrix1 = goog.typedef; - -/** - * A 2x2 Matrix of floats - * @type {!Array.<!Array.<number>>} - */ -o3djs.math.Matrix2 = goog.typedef; - -/** - * A 3x3 Matrix of floats - * @type {!Array.<!Array.<number>>} - */ -o3djs.math.Matrix3 = goog.typedef; - -/** - * A 4x4 Matrix of floats - * @type {(!Array.<!Array.<number>>|!o3d.Matrix4)} - */ -o3djs.math.Matrix4 = goog.typedef; - -/** - * A arbitrary size Matrix of floats - * @type {(!Array.<!Array.<number>>|!o3d.Matrix4)} - */ -o3djs.math.Matrix = goog.typedef; - o3djs.math.makeMatrix = function(a,b,c,d, e,f,g,h, |