summaryrefslogtreecommitdiff
path: root/src/math.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2019-06-22 10:11:18 -0500
committertom barrett <spalf0@gmail.com>2019-06-22 10:11:18 -0500
commitcccfb66c7c58bf464252e942ef2b742b41ece19e (patch)
tree8d13331a5cb65343d1a668d6dbb3fa4a62fb598a /src/math.rs
parent99c6e61a2b8fe66dcef7eada525f6fbdd7a2cd00 (diff)
now draw at the tile level
Diffstat (limited to 'src/math.rs')
-rw-r--r--src/math.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/math.rs b/src/math.rs
new file mode 100644
index 0000000..c7ea7f6
--- /dev/null
+++ b/src/math.rs
@@ -0,0 +1,5 @@
+use std::f32::consts::PI;
+
+pub fn convert_angle_to_rad(angle: f32) -> f32 {
+ angle * (PI / 180.0)
+}