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