aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index 1d5cb3c..ff49fea 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -27,4 +27,8 @@ extern double angle_between(double x1, double y1, double z1, double x2, double y
extern double lambda(double voltage);
extern void matrix_renormalise(gsl_matrix *m);
+#define rad2deg(a) ((a)*180/M_PI)
+#define deg2rad(a) ((a)*M_PI/180)
+
#endif /* UTILS_H */
+