mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-08 01:10:27 +00:00
20 lines
555 B
Markdown
20 lines
555 B
Markdown
## Cos
|
|
Return the cosine of the parameter
|
|
|
|
```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.
|
|
|
|
### Description
|
|
```cos()``` returns the trigonometric sine of angle.
|
|
|
|
<div class="simpleFunction" data="y = cos(x); "></div>
|
|
|
|
### See Also
|
|
[acos](index.html#acos.md), [sin](index.html#sin.md), [asin](index.html#asin.md), [tan](index.html#tan.md), [atan](index.html#atan.md), [Chapter 05: Shaping Functions](../05/) |