VectorA:mul
From ComputerCraft Wiki
Revision as of 09:21, 23 February 2013 by MafiaMoe (Talk | contribs) (Created page with "Returns a multiplication of the vector by a scalar local a = vector.new(1, 2, 3) local b = 2.5 local c = a:mul(b) print(c.x) print(c.y) print(c.z) --2.5 --5 --7.5")
Returns a multiplication of the vector by a scalar
local a = vector.new(1, 2, 3) local b = 2.5 local c = a:mul(b) print(c.x) print(c.y) print(c.z) --2.5 --5 --7.5