Vector.div(a, b);
No description
Arguments
a
The first vectorb
The second vectorReturns
Vector
The 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 }