1
0
Fork 0
freesewing/markdown/dev/reference/api/utils/deg2rad/en.md
2022-02-19 08:04:25 +01:00

12 lines
237 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.