summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/SNIP/pi.h
blob: 3e9d415ab9e81548d4624af49052e846599e7769 (plain)
1
2
3
4
5
6
#ifndef PI
 #define PI         (4*atan(1))
#endif

#define deg2rad(d) ((d)*PI/180)
#define rad2deg(r) ((r)*180/PI)