1 #!/usr/bin/env python 2 import math 3 4 -def deg2rad(deg): 5 return deg*math.pi/180.0 6 7 -def rad2deg(rad): 8 return rad*180.0/math.pi 9