Hallo Elya,
for (i=0;i<3;i++){
for (j=0;j<3;j++){
pos_alle.push(new Array(2));
pos_alle[i][0] = xpos[i];
hier schreibst Du dreimal xpos[i] nach pos_alle[i][0]
pos_alle[i][1] = ypos[j];
und hier schreibst Du alle drei ypos nach pos_alle[i][1]
}
}
Gruß, Jürgen