I have 2 arrays. I want to convert the index of the first array to the second. Is there a better way to do it than what I have below?
Array array1[9]; Array
p.x = index / 3; p.y = index % 3;