Commit 6d89a09f authored by ctrenkov's avatar ctrenkov
Browse files

added mathjs to project

parent 6081cfa6
...@@ -63,6 +63,7 @@ sources.js = [ ...@@ -63,6 +63,7 @@ sources.js = [
'./js/libraries/d3.min.js', './js/libraries/d3.min.js',
'./js/libraries/jquery.nouislider.all.min.js', './js/libraries/jquery.nouislider.all.min.js',
'./node_modules/three/three.min.js', './node_modules/three/three.min.js',
'./node_modules/mathjs/lib/browser/math.js',
'./js/libraries/nw-dialog.js', './js/libraries/nw-dialog.js',
'./js/libraries/bundle_xml2js.js', './js/libraries/bundle_xml2js.js',
'./js/libraries/Projector.js', './js/libraries/Projector.js',
......
This diff is collapsed.
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
"openlayers": "^4.6.5", "openlayers": "^4.6.5",
"temp": "^0.8.3", "temp": "^0.8.3",
"three": "0.72.0", "three": "0.72.0",
"mathjs": "9.3.2",
"xml2js": "^0.4.19" "xml2js": "^0.4.19"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -18,5 +18,5 @@ ...@@ -18,5 +18,5 @@
</tbody> </tbody>
</table> </table>
<span class="btn default_btn narrow green" id="add-motor"><a href="#" >Add motor</a></span <span class="btn default_btn narrow green" id="add-motor"><a href="#" >Add motor</a></span>
</div> </div>
'use strict'; 'use strict';
//import * as THREE from './js/three.module.js'; //import * as THREE from './js/three.module.js';
//var renderer = null; //var renderer = null;
//var scene = null; //var scene = null;
//var camera = null; //var camera = null;
...@@ -134,6 +133,11 @@ TABS.drone_canvas.initialize = function (callback) { ...@@ -134,6 +133,11 @@ TABS.drone_canvas.initialize = function (callback) {
renderer.setSize(render_width, render_height) renderer.setSize(render_width, render_height)
} }
function onAttemptSolve(){
const mat = math.matrix([[-1, 0], [0, -1]]);
console.log(math.inv(mat));
}
onAttemptSolve();
}); });
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment