I have a 2d array thats fully working
its 8 by 8 but i'll use 2 by 2 to make the example easier
the co-ords are atm...
0,0 0,1 0,2
1,0 1,1 1,2
2,0 2,1 2,2
So want to know if anybody can help me with the login to calculate the diagonas?
i can see here that they are
[B]/ - forward slash direction[/B]
1,0 0,1
2,0 1,1 0,2
2,1 1,2
[B]\ - backward slach direction[/B]
1,0 2,1
0,0 1,1 2,2
0,1 1,2
I can half see a pattern in them but its doing my head in - i wanted a nice neat way to work this out.