thebookofshaders/glossary/degrees.md

19 lines
479 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)
```
### 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
[radians](index.html#radians.md)