Degrees to radians

    0

    0

    Rik Hoffbauer

    angleradiansrads•••

    Converts an angle from degrees to radians.

    // the amount of radians per degree
    const RADIANS_PER_DEGREE = Math.PI / 180;
    
    /**
      * Converts a degree angle to radians.
      * @param {number} angle - The angle in degrees
      * @return {number} The angle in radians
      */
    function degreesToRadians(angle: number): number {
      return angle * RADIANS_PER_DEGREE;
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.