[0,0] [1,0] [2,0] [3,0] [4,0] [0,1] [1,1] [2,1] [3,1] [4,1] [0,2] [1,2] [2,2] [3,2] [4,2] [0,3] [1,3] [2,3] [3,3] [4,3] [0,4] [1,4] [2,4] [3,4] [4,4]
I have the following grid and would like to find the neighbouring positions of a certain point, going in a radius from in to out, covering all the positions.
Let say I take point [2,2] then its neighbours are in the first ring [1,1] [2,1] [3,1] [3,2] [3,3] [2,3] [1,3] [1,2] I manage to get the first ring, but getting the other rings I haven't got a clue on how to do that.
Can somebody help me? Thank you, jiri _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

