thebookofshaders/glossary/cos
2020-07-30 14:03:05 +07: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 2019-10-19 22:47:31 +08:00

Cos

Return the cosine of the parameter

Declaration

float cos(float angle)  
vec2 cos(vec2 angle)  
vec3 cos(vec3 angle)  
vec4 cos(vec4 angle)

Parameters

angle specify the quantity, in radians, of which to return the cosine.

Description

cos() returns the trigonometric cosine of angle.

See Also

acos, sin, asin, tan, atan, Chapter 05: Shaping Functions