summaryrefslogtreecommitdiff
path: root/src/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.rs b/src/utils.rs
index e0a0e29..bd435af 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -1,4 +1,4 @@
-#[derive(Clone, Debug, PartialEq, Eq, Hash)]
+#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Cardinal {
North,
South,
@@ -47,8 +47,8 @@ impl Cardinal {
match self {
Self::North => 0.0,
Self::South => std::f32::consts::PI,
- Self::West => 3.0 * std::f32::consts::PI / 2.0,
- Self::East => std::f32::consts::PI / 2.0,
+ Self::West => std::f32::consts::PI / 2.0,
+ Self::East => 3.0 * std::f32::consts::PI / 2.0,
}
}
}