Vector.print();
Since a Vector
implements a print
method, it can be used in the print
function.
local a = createVector(3, 5);
-- With print
print(a);
-- With class method
Vector.print(a);
-- with instance
a:print();
Vector.print();
Since a Vector
implements a print
method, it can be used in the print
function.
local a = createVector(3, 5);
-- With print
print(a);
-- With class method
Vector.print(a);
-- with instance
a:print();