inversesqrt¶
-
taichi_glsl.scalar.
inversesqrt
(x)¶ Return the inverse of the square root of the parameter.
inversesqrt returns the inverse of the square root of x; i.e. the value 1 / sqrt(x). The result is undefined if x <= 0.
- Parameters
x – Specify the value of which to take the inverse of the square root.
- Returns
The return value can be calculated as 1 / sqrt(x) or pow(x, -0.5).