diff options
Diffstat (limited to 'src/util.rs')
-rw-r--r-- | src/util.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs new file mode 100644 index 0000000..cbd5813 --- /dev/null +++ b/src/util.rs @@ -0,0 +1,3 @@ +pub fn degrees_to_radians(degrees: f64) -> f64 { + degrees * std::f64::consts::PI / 180.0 +} |