Difference between revisions of "Vector.new"
From ComputerCraft Wiki
Line 6: | Line 6: | ||
print(a.y) | print(a.y) | ||
print(a.z) | print(a.z) | ||
− | + | --1 | |
− | + | --2 | |
− | + | --3 |
Revision as of 09:08, 23 February 2013
Returns a table with the labels "x", "y" and "z" containing the coordinates of the vector.
local a = vector.new(1, 2, 3) print(a.x) print(a.y) print(a.z) --1 --2 --3