Tweakr
    Preparing search index...

    Function toRadians

    • Converts an angle from degrees to radians.

      Parameters

      • degrees: number

        Angle in degrees (finite number).

      Returns number

      Equivalent angle in radians.

      toRadians(180); // Math.PI
      toRadians(90); // Math.PI / 2

      If the input is not a finite number.

      1.2.0