|
@@ -9,7 +9,7 @@ const oscClient = new Client('127.0.0.1', 3333);
|
|
|
let alive = [];
|
|
|
let fseq;
|
|
|
|
|
|
-const objTriangle = [] ;
|
|
|
+let objTriangle = [] ;
|
|
|
|
|
|
function getHypotenuse(touch1, touch2) {
|
|
|
const x = Math.abs(touch1.x - touch2.x);
|
|
@@ -95,7 +95,9 @@ app.use(bodyParser.urlencoded({extended:true}));
|
|
|
app.use(express.static('./frontend/assets'));
|
|
|
|
|
|
app.get('/', function (req, res) {
|
|
|
- res.sendFile('./frontend/index.html', { root: path.resolve(__dirname + '/..') })
|
|
|
+ res.sendFile('./frontend/index.html', {
|
|
|
+ root: path.resolve(__dirname + '/..')
|
|
|
+ })
|
|
|
});
|
|
|
|
|
|
app.post('/json', function (req, res) {
|
|
@@ -265,7 +267,7 @@ app.post('/json', function (req, res) {
|
|
|
|
|
|
|
|
|
console.log(objTriangle.apex);
|
|
|
- console.log("centerPos : " + objTriangle.center + " orientation : " + objTriangle.orientation);
|
|
|
+ console.log('centerPos : ' + objTriangle.center + ' orientation : ' + objTriangle.orientation);
|
|
|
|
|
|
|
|
|
* trouver la valeur de l'angle de l'apex (théorème des cosinus)
|
|
@@ -317,7 +319,7 @@ app.post('/json', function (req, res) {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -371,4 +373,3 @@ app.post('/json', function (req, res) {
|
|
|
server.listen(5001, function () {
|
|
|
console.log('Votre app est disponible sur localhost:5001 !')
|
|
|
});
|
|
|
-
|