Function radiansToDegrees

    • Converts an angle in radians to degrees

    Parameters

    • radians: number

      angle in radians

    Returns number

    degrees between 0 and 360 degrees

    Name

    radiansToDegrees

    Example

    radiansToDegrees(Math.PI / 2); // => 90
    let resultArray = [Math.PI, Math.PI / 2, 0, -Math.PI / 2, -Math.PI];
    resultArray.map(radiansToDegrees); // => [180, 90, 0, -90, -180]

Generated using TypeDoc