createVector(x, y);
Create a vector instance
Arguments
x
The first component of the vectory
The second component of the vectorReturns
Vector
The created vectorlocal a = createVector(3, 5);
local b = createVector(1, 3);
local c = a:add(b);
print(c);