From ffa5d8505b9d87392ccd8da9c9fecc797f355251 Mon Sep 17 00:00:00 2001 From: "Theunis J. Botha" Date: Fri, 30 Sep 2016 14:33:37 +0200 Subject: [PATCH] maths --- maths3d.js => game-lib-maths.js | 9 +-------- game-lib.js | 4 ++-- 2 files changed, 3 insertions(+), 10 deletions(-) rename maths3d.js => game-lib-maths.js (98%) diff --git a/maths3d.js b/game-lib-maths.js similarity index 98% rename from maths3d.js rename to game-lib-maths.js index b21b831..a36988a 100644 --- a/maths3d.js +++ b/game-lib-maths.js @@ -700,12 +700,5 @@ Maths3D.Vector3.prototype.cross = function (v) { }; if (typeof module !== 'undefined') { - module.exports = { - Vector2: Maths3D.Vector2, - Vector3: Maths3D.Vector3, - Vector4: Maths3D.Vector4, - Matrix3: Maths3D.Matrix3, - Matrix4: Maths3D.Matrix4, - Color: Maths3D.Color - }; + module.exports = Maths3D; } \ No newline at end of file diff --git a/game-lib.js b/game-lib.js index 2e61d5a..9b073a0 100644 --- a/game-lib.js +++ b/game-lib.js @@ -1,5 +1,5 @@ if (typeof require != 'undefined') { - var Maths3D = require('./maths3d'); + var Maths3D = require('./game-lib-maths.js'); } function GameLib() {} @@ -2610,4 +2610,4 @@ GameLib.D3.prototype.loadScene = function(blenderScene, onLoaded, computeNormals if (typeof module != 'undefined') { module.exports = GameLib.D3; -} +} \ No newline at end of file