sqrLength¶
-
taichi_glsl.vector.
sqrLength
(x)¶ Calculate the square of the length of a vector.
sqrLength returns the square of length of the vector, i.e., x[0] ** 2 + x[1] * 2 + ….
- Parameters
x – Specifies a vector of which to calculate the length.
- Returns
The return value can be calculated as dot(x, x).
- See also