From 4b4bcce0406cfb750ebf6c0499630fbe726ff5d8 Mon Sep 17 00:00:00 2001 From: konsumlamm Date: Tue, 25 Jun 2019 01:41:45 +0200 Subject: add small doc comments --- webhogg/game_server/src/math.rs | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-54-g00ecf