thebookofshaders/glossary/tan/README.md

21 lines
594 B
Markdown
Raw Normal View History

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