thebookofshaders/glossary/abs
Kvmilos 4890cbeb72 unified grammar in Polish translations 2025-02-09 17:45:53 +01:00
..
README-pl.md unified grammar in Polish translations 2025-02-09 17:45:53 +01:00
README-ua.md add ukrainian translation 2023-08-06 20:36:42 +03:00
README-vi.md Translate glossary section (partly) and swap all/any page 2020-07-30 14:03:05 +07:00
README.md fix a typo in glossary/abd 2025-02-02 22:15:48 +01:00

README.md

Abs

Return the absolute value of the parameter.

Declaration

float abs(float x)  
vec2 abs(vec2 x)  
vec3 abs(vec3 x)  
vec4 abs(vec4 x)

Parameters

x specifies the value of which to return the absolute.

Description

abs() returns the absolute value of x.

See Also

sign(), min(), max(), Chapter 05: Shaping Functions