modeling/src/utils/degToRad.js

  1. /**
  2. * Convert the given angle (degrees) to radians.
  3. * @param {Number} degrees - angle in degrees
  4. * @returns {Number} angle in radians
  5. * @alias module:modeling/utils.degToRad
  6. */
  7. const degToRad = (degrees) => degrees * 0.017453292519943295
  8. module.exports = degToRad