2015-04-17 04:52:51 +00:00
|
|
|
## Cos
|
|
|
|
Return the cosine of the parameter
|
|
|
|
|
2015-04-18 14:41:34 +00:00
|
|
|
### Declaration
|
2015-04-17 04:52:51 +00:00
|
|
|
```glsl
|
|
|
|
float cos(float angle)
|
|
|
|
vec2 cos(vec2 angle)
|
|
|
|
vec3 cos(vec3 angle)
|
|
|
|
vec4 cos(vec4 angle)
|
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
2015-04-18 14:41:34 +00:00
|
|
|
```angle``` specify the quantity, in radians, of which to return the cosine.
|
2015-04-17 04:52:51 +00:00
|
|
|
|
|
|
|
### Description
|
|
|
|
```cos()``` returns the trigonometric sine of angle.
|
|
|
|
|
|
|
|
<div class="simpleFunction" data="y = cos(x); "></div>
|
|
|
|
|
|
|
|
### See Also
|
2017-08-19 10:11:58 +00:00
|
|
|
[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/)
|