Is there a way to do a cross section of a 3D Array?
What I mean is: Cut the array along the Z axis so you get a 2D plane of the X axis and Y axis.
I need to do this so I can store them as separate sections in an ArrayList, or even potentially a List.
Thanks.
I’m not sure C# has an out-of-the-box way of doing this, so you’d have to implement something yourself:
Alternatively, rather than making a copy, you could implement a wrapper class with a two-dimensional indexer that simply queries the original array. You’d lose array-specific methods, though.