modeling/src/utils/radToDeg.js

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