You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
464 B
Markdown
18 lines
464 B
Markdown
10 years ago
|
## Radians
|
||
|
Convert a quantity in degrees to radians
|
||
|
|
||
|
```glsl
|
||
|
float radians(float degrees)
|
||
|
vec2 radians(vec2 degrees)
|
||
|
vec3 radians(vec3 degrees)
|
||
|
vec4 radians(vec4 degrees)
|
||
|
```
|
||
|
|
||
|
### Parameters
|
||
|
```degrees``` Specify the quantity, in degrees, to be converted to radians.
|
||
|
|
||
|
### Description
|
||
|
```radians()``` converts a quantity, specified in degrees into radians. That is, the return value is ```(PI * degrees)/180```.
|
||
|
|
||
|
### See Also
|
||
|
[degrees](index.html#degrees.md)
|