These are two codes, that should have the exact same result, but don’t… why?
for (int i = 0; i < vectors.length; i++) {
vectors[i] = new PVector(i%10*10 + 50, i/10*10);
}
for (int i = 0; i < vectors.length; i++) {
vectors[i] = new PVector(i%10*10 + 50, i);
}
Where is the difference? Can someone explain to me, why the first creates a “cursiv” grid, while the second one a normal one?
Well, i actually already set up a grid system with these loops, so i know the different results they produce, but it just didn’t make any sense, thats why i asked