hawk.math.vec#
- hawk.math.vec(*components)[source]#
Build a rank-1 value from scalar components: both
vec(a, b, c)andvec([a, b, c])work, the second being what a static comprehension evaluates to. A single list argument is the components; anything else is taken positionally, sovec(x)is still the width-1 vector, not a mis-read singleton.- Return type:
Value- Parameters:
components (Any)