createVector

v0.0.6
createVector(x, y);

Create a vector instance

Arguments

xThe first component of the vector
yThe second component of the vector

Returns

VectorThe created vector

local a = createVector(3, 5);
local b = createVector(1, 3);

local c = a:add(b);

print(c);
See createVector in lu5_vector.h