thebookofshaders/glossary/sin/README.md

22 lines
586 B
Markdown
Raw Normal View History

2015-04-17 04:52:51 +00:00
## Sin
Return the sine of the parameter
2015-04-18 14:41:34 +00:00
### Declaration
2015-04-17 04:52:51 +00:00
```glsl
float sin(float angle)
vec2 sin(vec2 angle)
vec3 sin(vec3 angle)
vec4 sin(vec4 angle)
```
### Parameters
2015-04-18 14:41:34 +00:00
```angle``` specify the quantity, in radians, of which to return the sine.
2015-04-17 04:52:51 +00:00
### Description
```sin()``` returns the trigonometric sine of angle.
<div class="simpleFunction" data="y = sin(x); "></div>
### See Also
2017-08-19 10:11:58 +00:00
[acos](/glossary/?search=acos), [cos](/glossary/?search=cos), [asin](/glossary/?search=asin), [tan](/glossary/?search=tan), [atan](/glossary/?search=atan), [Chapter 05: Shaping Functions](/05/)