1
0
Fork 0

chore(markdown): Updated utils docs for v3

This commit is contained in:
Joost De Cock 2022-10-01 22:20:43 +02:00
parent acf1b72c4c
commit bc3b0cd770
23 changed files with 782 additions and 622 deletions

View file

@ -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.