Published
- 1 min read
javascript degree to radians
The solution for this is noted below
javascript degree to radians
Solution
const degsToRads = (deg) => (deg * Math.PI) / 180.0
const radsToDegs = (rad) => (rad * 180) / Math.PI
Try other methods by searching on the site. That is if this doesn’t work