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