Converts an angle in radians to degrees
num radiansToDegrees(num radians) { num degrees = radians.remainder(2 * pi); return degrees * 180 / pi; }