thebookofshaders/glossary/pow
Kvmilos edb0e29f8a unified the singular/plural forms 2025-02-09 14:57:23 +01:00
..
README-ua.md add ukrainian translation 2023-08-06 20:36:42 +03:00
README-vi.md Translate the glossary section 2020-07-30 16:34:42 +07:00
README.md unified the singular/plural forms 2025-02-09 14:57:23 +01:00

README.md

Pow

Return the value of the first parameter raised to the power of the second.

Declaration

float pow(float x, float y)  
vec2 pow(vec2 x, vec2 y)  
vec3 pow(vec3 x, vec3 y)  
vec4 pow(vec4 x, vec4 y)

Parameters

x specifies the value to raise to the power y.

y specifies the power to which to raise x.

Description

pow() returns the value of x raised to the y power.

See Also

inversesqrt, sqrt, Chapter 05: Shaping Functions