vecFill

taichi_glsl.vector.vecFill(n, x)

Create a n-D vector whose all components are initialized by x.

Parameters

x – Specify the scalar value to fill the vector.

Returns

The return value is calculated as vec(x for _ in range(n)).

See also

vecND(), vec(), vec3().