mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-03 23:15:23 +00:00
20 lines
519 B
Markdown
20 lines
519 B
Markdown
|
## Tan
|
||
|
Return the tangent of the parameter
|
||
|
|
||
|
```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](index.html#cos.md), [acos](index.html#acos.md), [sin](index.html#sin.md), [asin](index.html#asin.md), [atan](index.html#atan.md)
|