mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-08 01:10:27 +00:00
21 lines
594 B
Markdown
21 lines
594 B
Markdown
## Tan
|
|
Return the tangent of the parameter
|
|
|
|
### Declaration
|
|
```glsl
|
|
float tan(float angle)
|
|
vec2 tan(vec2 angle)
|
|
vec3 tan(vec3 angle)
|
|
vec4 tan(vec4 angle)
|
|
```
|
|
|
|
### Parameters
|
|
```angle``` specify the quantity, in radians, of which to return the tangent.
|
|
|
|
### Description
|
|
```tan()``` returns the trigonometric tangent of angle.
|
|
|
|
<div class="simpleFunction" data="y = tan(x); "></div>
|
|
|
|
### See Also
|
|
[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/) |