rotate() function now takes the angle in degrees rather than radians.