Posts: 1,046
Threads: 250
Joined: Nov 2014
Reputation:
0
Hey, I couldn't find a constant on the wiki, what I am actually trying to do is store more coords in same variable if thats how it is called, I know that it looks something like this?:
new x [] =
{ x, y, z}
{ x, y, z}
;
But I don't actually know how to make it properly.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
You can think of arrays like tables:
One dimension ([]) = number of rows,
Two dimensions ([][]) = number of rows, number of columns (tabular),
Three dimensions ([][][]) = number of tables, number of rows, number of columns.
It is usually not necessary to actually put numbers between the brackets. The compiler can calculate the size.
Posts: 420
Threads: 6
Joined: Dec 2013
Reputation:
0
Yeah, I like to be a smartass and set up a value to keep me reminded that i shouldn't use that value or cross that same value.
You can also use sizeof(CameraPosition) to see the actual size if you need to loop it or just check.
Edit: No you can set it empty and the compiler will itself calculate its size as Vince said.