You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
thebookofshaders/glossary/sqrt/README.md

23 lines
550 B
Markdown

## Sqrt
Return the square root of the parameter
### Declaration
```glsl
float sqrt(float x)
vec2 sqrt(vec2 x)
vec3 sqrt(vec3 x)
vec4 sqrt(vec4 x)
```
### Parameters
```x``` specify the value of which to take the square root.
### Description
```sqrt()``` returns the square root of ```x```.
<div class="simpleFunction" data="y = sqrt(x); "></div>
<div class="codeAndCanvas" data="../07/circle-making.frag"></div>
### See Also
[inversesqrt](/glossary/?search=inversesqrt), [pow](/glossary/?search=pow), [Chapter 05: Shaping Functions](/05/)