Vector.div(a, b);No description
Arguments
aThe first vectorbThe second vectorReturns
VectorThe divided vectorlocal 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 }