❔ 3D Arrays = good tutorial?
Does someone have a good guide/tutorial how to explain 3d arrays. the course on udemy isnt to clear for me .
what of the 3 axes is wich? ( z, x , y)
How does it move , etc.
14 Replies
3D arrays? you mean
int[,,]
, yes?yes multi dimensional arrays . [,,] is correct
then it's your choice what goes where
wdym?
well, you're the one populating it
it's just an array
you can put anything you want in it
this could be
x, y, z
, y, z, x
, foo, bar, baz
, p, _9999, Γ
yeah but i mean, whats the index of those numbers
foo[0, 0, 0]
i see where you might be confused. the 0
here would be at foo[1, 1, 0]
and how do they increase ?
well the first index is the outermost array. the second is the next layer, and the last is the final array
it's an array of arrays of arrays
yeah [,] = like 00 0102
10 11 12
so if you added one more { }
then it would be 1 0 0
figured it out myself
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.