Vector.div

v0.1.6
Vector.div(a, b);

No description

Arguments

aThe first vector
bThe second vector

Returns

VectorThe divided vector

local a = createVector(4, 2);
local b = createVector(2, 1);

-- Non-mutable
print(Vector.div(a, b)); -- { 2.0, 2.0 }
print(a / b);            -- { 2.0, 2.0 }
print(a);                -- { 4.0, 2.0 }

-- Mutable
print(a:div(b));	-- { 2.0, 2.0 }
print(a) 		-- { 2.0, 2.0 }
See Vector.div in lu5_vector.h