Function degToRad

  • Converts an angle in degrees to an angle in radians

    Parameters

    • angle: number

      angle in degrees

    Returns number

    corresponding angle in radians

    // convert a specific angle
    math.degToRad(60); // return 1.0471...