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