Function toDegrees

Convert the angle theta from radians to degrees.