title: Convert a 1d array index to a 3d array index?
body: <p>I've got a int that I want to convert to 3 ints for the index of a 3d array, here's an example of what I'm on about.</p>
  
  <pre><code>byte[,,] array = new byte[XSize, YSize, ZSize];
  
  int i = 0;
  
  //other code
  
  array[#,#,#] = cur;
  
  //other code
  </code></pre>
  
  <p>I don't know how to get the correct numbers for the #,#,# from just i.</p>