0

Convert degrees to radians

Function JavaScript 1 revisions 104 9 months ago 9 months ago
function degreeToRadian(deg) {
    return (deg/180) * Math.PI
}

This function is very simple and converts degrees to radians.

degreeToRadian(360); // 6.28319...