14 lines
238 B
Markdown
14 lines
238 B
Markdown
![]() |
---
|
||
|
title: deg2rad()
|
||
|
---
|
||
|
|
||
|
```js
|
||
|
float deg2rad(float degrees)
|
||
|
```
|
||
|
|
||
|
Returns the degrees you pass to it as radians.
|
||
|
|
||
|
This is useful for when you use methods like `Math.cos()` that expects a corner
|
||
|
in radians, when we typically use degrees.
|
||
|
|