Sg2.9
intersection bug
Recent RSS
intersection bug
From:  simon
Date:  6. October 2011, 14:04

hi i just wrote the following code and noticed that the result for lines with only two points differs from lines with more points.

var selectedItems = document.getItems({ selected: true });

selectedItems[0].strokeColor = 'red';
selectedItems[1].strokeColor = 'blue';

console.log("------------------------");

for(i=0; i<selectedItems.length; i++){
for(j=0; j<selectedItems.length; j++){
if(i!=j){
console.log("c ", i, j, selectedItems[i].contains(selectedItems[j]));
console.log("i ", i, j, selectedItems[i].intersects(selectedItems[j]));

}
}
}

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Sudoku Generator + Solver 03.01.13