thebookofshaders/glossary/degrees/README.md

20 lines
483 B
Markdown
Raw Normal View History

2015-04-17 04:52:51 +00:00
## Degrees
Convert a quantity in radians to degrees
2015-04-18 14:41:34 +00:00
### Declaration
2015-04-17 04:52:51 +00:00
```glsl
float degrees(float radians)
vec2 degrees(vec2 radians)
vec3 degrees(vec3 radians)
vec4 degrees(vec4 radians)
```
2017-08-19 10:11:58 +00:00
2015-04-17 04:52:51 +00:00
### Parameters
2015-04-18 14:41:34 +00:00
```radians``` specify the quantity, in radians, to be converted to degrees.
2015-04-17 04:52:51 +00:00
### Description
```degrees()``` converts a quantity, specified in radians into degrees. That is, the return value is ```(180.0*radians)/PI```
### See Also
2017-08-19 10:11:58 +00:00
[radians](/glossary/?search=radians)