![]() In your case you want just the third component to have the offset. But you probably don't need to worry about that at this point. Arrays can also be multi-dimensional, so the address could be foo for a three dimensional array. ![]() Note that the index starts at 0, so to get the first component of the array you would use foo, the second foo and so on. TL DR to create an array you put a number of comma-separated values in square brackets.Ĭonversely you can access any of the components of an array using this notation: foo where foo is the name of the variable, and n is the index of the component you want. To specify an array you use this notation foo = where A, B and C are the individual values – constants, variables, whatevs. The position property is an array, which is a container with a number of components in it, in this case the three position values: x, y and z.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |