Gave some formulas instead of magic numbers. Also changed added conversions from polar to cartesian and backwards (renamed the original
cartesianToRadians, since it was a misnomer).