Vector.new

From ComputerCraft Wiki
Revision as of 09:08, 23 February 2013 by MafiaMoe (Talk | contribs)

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)

print(a.x)
print(a.y)
print(a.z)
--1
--2
--3