dot¶
-
taichi_glsl.vector.
dot
(a, b)¶ Calculate the dot product of two vectors.
dot returns the dot product of two vectors, i.e., x[0] * y[0] + x[1] * y[1] + ….
- Parameters
x – Specifies the first of two vectors.
y – Specifies the second of two vectors.
- Returns
The return value can be calculated as summation(a * b).
- See also