chore(markdown): Updated utils docs for v3
This commit is contained in:
parent
acf1b72c4c
commit
bc3b0cd770
23 changed files with 782 additions and 622 deletions
|
@ -1,12 +1,16 @@
|
|||
---
|
||||
title: deg2rad()
|
||||
title: utils.deg2rad()
|
||||
---
|
||||
|
||||
The `utils.deg2read()` function returns the degrees you pass to it as radians.
|
||||
|
||||
## Signature
|
||||
|
||||
```js
|
||||
float deg2rad(float degrees)
|
||||
```
|
||||
|
||||
Returns the degrees you pass to it as radians.
|
||||
## Notes
|
||||
|
||||
This is useful for when you use methods like `Math.cos()` that expects a corner
|
||||
This is useful for when you use functions like `Math.cos()` that expect a corner
|
||||
in radians, when we typically use degrees.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue