Light | Dark

sqrt

Name

sqrt — return the square root of the parameter

Declaration

genType sqrt( genType x);
genDType sqrt( genDType x);

Parameters

x

Specify the value of which to take the square root.

Description

sqrt returns the square root of x. i.e., the value x. Results are undefined if x<0.

Version Support

OpenGL Shading Language Version
Function Name 1.10 1.20 1.30 1.40 1.50 3.30 4.00 4.10 4.20 4.30 4.40 4.50
sqrt (genType)
sqrt (genDType) - - - - - -

See Also

pow, inversesqrt

Think you can improve this page? Edit this page on GitHub.