VectorA:sub
From ComputerCraft Wiki
Revision as of 09:16, 23 February 2013 by MafiaMoe (Talk | contribs) (Created page with "Returns the result of subtracting the second vector from the first local a = vector.new(1, 2, 3) local b = vector.new(3, 2, 1) local c = a:sub(b) print(c.x) print(c....")
Returns the result of subtracting the second vector from the first
local a = vector.new(1, 2, 3) local b = vector.new(3, 2, 1) local c = a:sub(b) print(c.x) print(c.y) print(c.z) --(-2) --0 --2