You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
thebookofshaders/glossary/cos/README.md

21 lines
589 B
Markdown

10 years ago
## Cos
Return the cosine of the parameter
### Declaration
10 years ago
```glsl
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.
10 years ago
### Description
```cos()``` returns the trigonometric sine of angle.
<div class="simpleFunction" data="y = cos(x); "></div>
### See Also
[acos](/glossary/?search=acos), [sin](/glossary/?search=sin), [asin](/glossary/?search=asin), [tan](/glossary/?search=tan), [atan](/glossary/?search=atan), [Chapter 05: Shaping Functions](/05/)