Geeks With Blogs
Ian Warwick blog January 2007 Entries
Toroidal array access

I am not sure if toroidal is the correct term but I have a need to access an array in a square donut shaped pattern. The array is a 2 dimensional array that represents a grid of n*n dimension. The code demonstrates one loop, I assume a location of 0,0 as the the starting point, this could be translated to a position within the array.

Posted On Tuesday, January 30, 2007 10:39 AM

Copyright © Ian Warwick | Powered by: