Convert Degrees to Radians And Vice Versa

// degrees -> radians
var radians = degrees * Math.PI / 180;
// radians -> degrees
var degrees = radians * 180 / Math.PI;
Tagged with
Javascript