summaryrefslogtreecommitdiff
path: root/webhogg/game_server/src/math.rs
diff options
context:
space:
mode:
Diffstat (limited to 'webhogg/game_server/src/math.rs')
-rw-r--r--webhogg/game_server/src/math.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/webhogg/game_server/src/math.rs b/webhogg/game_server/src/math.rs
index 6d9f1e1..a5d36eb 100644
--- a/webhogg/game_server/src/math.rs
+++ b/webhogg/game_server/src/math.rs
@@ -122,6 +122,7 @@ impl Vec2 {
}
}
+/// axis-aligned box
#[derive(Clone, Copy, Debug)]
pub struct AABox {
pub pos: Vec2,
@@ -170,6 +171,7 @@ impl std::cmp::PartialEq for AABox {
impl std::cmp::Eq for AABox {}
+/// rotated box
#[derive(Clone, Copy, Debug)]
pub struct RBox {
/// origin