Function toRadians

Convert the angle theta from degrees to radians.