function radiansToDegrees(radians) {
    var degrees = radians % (2 * Math.PI);
    return (degrees * 180) / Math.PI;
}
Converts an angle in radians to degrees

@name radiansToDegrees
@param {number} radians angle in radians
@returns {number} degrees between 0 and 360 degrees