0

Convert degrees to radians

Function JavaScript 1 revisions 166 a year ago a year ago
function degreeToRadian(deg) {
    return (deg/180) * Math.PI
}

This function is very simple and converts degrees to radians.

degreeToRadian(360); // 6.28319...