1
0
Fork 0
freesewing/markdown/dev/reference/api/utils/deg2rad/en.md
2021-10-17 18:26:00 +02:00

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