vecAngle

taichi_glsl.vector.vecAngle(a)

Return a 2D vector of specific phase angle.

Parameters

a – Specify the phase angle of vector.

Returns

The return value is computed as vec(cos(a), sin(a)).