Vector.new

From ComputerCraft Wiki
Revision as of 08:54, 23 February 2013 by MafiaMoe (Talk | contribs) (Created page with "Returns a table with the labels "x", "y" and "z" containing the coordinates of the vector. local a = vector.new(1, 2, 3) save(a, "vector") print(a.x) print(a.y) print(...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns a table with the labels "x", "y" and "z" containing the coordinates of the vector.

local a = vector.new(1, 2, 3)

save(a, "vector")
print(a.x)
print(a.y)
print(a.z)
//1
//2
//3