Please add complete swizzle property to int2 float2 int3 float3 similar to int4 and float4 and define it as 0
So that we could simply upcast vec2 and vec3 to another dimension easily as downcast vec4 to lower dimension
Such as
var screenPoint = new float2(5,3);
var groundPoint = screenPoint.xzy; // (5,0,3)
var wallPoint = screenPoint.zyx; // (0,3,5)
Alternatively it might be xy0 x0y _0xy yx0 y0x _0yx and maybe xy1 x1y _1xy yx1 y1x _1yx and so on for specific default number
Please add complete swizzle property to
int2float2int3float3similar toint4andfloat4and define it as 0So that we could simply upcast
vec2andvec3to another dimension easily as downcastvec4to lower dimensionSuch as
Alternatively it might be
xy0x0y_0xyyx0y0x_0yxand maybexy1x1y_1xyyx1y1x_1yxand so on for specific default number