thebookofshaders/glossary/sqrt
2016-04-06 11:44:45 -04:00
..
README.md folder structure for glossary 2016-04-06 11:44:45 -04:00

Sqrt

Return the square root of the parameter

Declaration

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.

See Also

inversesqrt, pow, Chapter 05: Shaping Functions