vec

taichi_glsl.vector.vec(*xs)

Create a vector by scalars or vectors in arguments (GLSL-alike).

The return vector dimension depends on the count of scalars in xs.

Parameters

xs – Specify the scalar or vector values to initialize the vector components. If xs[i] is vector, it will be flatten into a series of scalars.

Returns

A n-D vector initialized as described above.

See also

vecND(), vecSimple(), vecFill().