|
@@ -237,7 +237,7 @@ export default {
|
|
|
// console.log(`this.salientPoints ${this.concernement.id}`, this.salientPoints);
|
|
|
},
|
|
|
getJarvisEnvelopeConvexe(){
|
|
|
- console.log(`getJarvisEnvelopeConvexe ${this.id}`, this.entites.length);
|
|
|
+ // console.log(`getJarvisEnvelopeConvexe ${this.id}`, this.entites.length);
|
|
|
// https://www.geeksforgeeks.org/convex-hull-using-jarvis-algorithm-or-wrapping/
|
|
|
// the most left point
|
|
|
let l, min_x = null;
|
|
@@ -251,7 +251,7 @@ export default {
|
|
|
}
|
|
|
let p = l, q;
|
|
|
do {
|
|
|
- console.log(`do while ${this.id}`, p);
|
|
|
+ // console.log(`do while ${this.id}`, p);
|
|
|
// Add current point to result
|
|
|
let entite = this.entites[p];
|
|
|
let farest = {
|
|
@@ -1685,7 +1685,7 @@ export default {
|
|
|
// calcul opened size regarding window size
|
|
|
// let ch = this.canvas.height;
|
|
|
let s = this.canvas.height / (this.ray*2.8)
|
|
|
- // debugger;
|
|
|
+
|
|
|
|
|
|
// opening tweening
|
|
|
this.tween = new Tween.Tween({s: this.scale, x: this.pos.x, y: this.pos.y, o: 0})
|