Mazetar

3D Array [,,] C#

Aug 14th, 2011
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1.         // 3 Dimensions Array example.
  2.         //                            // if we say 0,0,0 is x,y,z then:
  3.        
  4.  
  5.  
  6. static string[, ,] test = new string[,,] { { { "0,0,0", "0,0,1" /*Increases Z */}, /*increases y */ { "0,1,0", "0,1,1" } }, /*increases X */ { { "1,0,0", "1,0,1" }, { "1,1,0", "1,1,1" } } };
  7.      
  8.  
  9. // {{{Z}Y}X}
  10.  
  11.  
  12.  
  13. {X0{Y0{Z0,Z1},Y1{Z0,Z1}}, X1{Y0{Z0,Z1},Y1{Z0,Z1}}};
  14.  
  15. //Shows when the different axis increases
Advertisement
Add Comment
Please, Sign In to add comment