Ok, so this is going to be a really small feature request, shouldn’t take much time to implement, but sometimes when I am working with position and doing some 2D vector maths, it would be more convenient to have 2D vectors, not anything critical, but for convenience, or when dealing with things that only have two values, it just seems redundant to keep having to set the z value to 0 Pretty self explanatory but I imagine somehting like this:
local vec = vmath.vector2(20, 20)
-- Conversion between vector2 and vector3:
local vec3 = vmath.vector3(vec)
local vec3_1 = vmath.vector3(vec, 10)
print(vec)
-- >> x: 20, y: 20
print(vec3)
-- >> x: 20, y: 20, z: 0
print(vec3_1)
-- >> x: 20, y: 20, z: 10