UNPKG
@jscad/modeling
Version:
alpha (3.0.2-alpha.0)
latest (2.12.6)
3.0.2-alpha.0
3.0.1-alpha.0
3.0.0-alpha.0
2.12.6
2.12.5
2.12.4
2.12.3
2.12.2
2.12.1
2.12.0
2.11.1
2.11.0
2.10.0
2.9.6
2.9.5
2.9.4
2.9.3
2.9.2
2.9.1
2.9.0
2.8.0
2.7.2
2.7.1
2.7.0
2.6.1
2.6.0
2.5.3
2.5.2
2.5.1
2.5.0
2.4.0
2.3.0
2.2.0
2.1.0
2.0.0
2.0.0-alpha.11
2.0.0-alpha.10
2.0.0-alpha.9
2.0.0-alpha.8
2.0.0-alpha.7
2.0.0-alpha.6
2.0.0-alpha.5
2.0.0-alpha.4
Constructive Solid Geometry (CSG) Library for JSCAD
openjscad.xyz
jscad/OpenJSCAD.org
@jscad/modeling
/
src
/
utils
/
degToRad.js
10 lines
(8 loc)
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
/** * Convert the given angle (degrees) to radians. *
@param
{Number} degrees - angle in degrees *
@returns
{Number} angle in radians *
@alias
module:modeling/utils.degToRad */
const
degToRad
=
(degrees) => degrees *
0.017453292519943295
module
.
exports
= degToRad