If all you want to do is convert degrees to radians, then you simply use: d * (π/180)
where d
is degrees.
If you also want to be able to say the compass direction (as in North, South, East, West), create an enum and convert these to degrees and use a degrees-to-radians function.