Vector3.opDispatch

Swizzle the vector with x, y, z, 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.

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

struct Vector3
@nogc nothrow const
opDispatch
(
string swizzle
size_t nArgCount
)
(
float[nArgCount] nArgs...
)
if (
swizzle.isValidSwizzle &&
nArgCount <= swizzle.count('n')
)

Meta