Function Vector2.opDispatch

Swizzle the vector with x, y, or n. Pass floats as args for any n's; if there are more n's than args, the last arg is used for the rest. If no args are passed at all, 0.0 is used for each n.

auto opDispatch(string swizzle, ulong nArgCount)()
if (swizzle.isValidSwizzle && (nArgCount <= swizzle.count('n')));

The swizzle must be 2 or 3 characters, as Godot only has Vector2/3.