Comments and answers for "how to create a matrix in C#?"
http://answers.unity.com/questions/1303141/how-to-create-a-matrix-in-c.html
The latest comments and answers for the question "how to create a matrix in C#?"Comment by Bunny83 on Bunny83's answer
http://answers.unity.com/comments/1303158/view.html
They are in [general called jagged arrays][1], [even in Java][2]^^. Matrix is actually a mathematical term and generally means a rectangular two dimensional array of numbers.
Jagged arrays don't have to be rectangular since each nested array can have a different length, like the example in the question (first as 3 elements the second and third has only two each).
In the field of games and computer graphics you usually don't call an array "a matrix" as there are actual matrices like Unity's `Matrix4x4` type. However that's a matrix in the mathematical sense.
[1]: https://en.wikipedia.org/wiki/Jagged_array
[2]: http://stackoverflow.com/questions/18269123/ragged-and-jagged-arraysTue, 24 Jan 2017 01:22:39 GMTBunny83Comment by Owen-Reynolds
http://answers.unity.com/comments/1303156/view.html
The trick, as Erethan notes, is that C# is a regular, popular, computer language, that Unity just happens to also use.
Obviously, things like changing a gameObject's color are Unity-specific, but for 90% of what you want to know, you can just Search "C# thingYouWantToKnow" and get a really nice explanation - much better than you'd get here, since C# is much older and has many, many more users.Tue, 24 Jan 2017 01:12:19 GMTOwen-ReynoldsAnswer by Erethan
http://answers.unity.com/answers/1303151/view.html
These are called jagged array (at least in C# as far as I know)
The msdn doc is quite clear:
https://msdn.microsoft.com/en-us/library/2s05feca.aspx
You also might be interest in Multi-dimensional arrays (This would be closer to a matrix):
https://msdn.microsoft.com/en-us/library/2yd9wwz4.aspxTue, 24 Jan 2017 00:40:58 GMTErethan