diff options
author | konsumlamm <konsumlamm@gmail.com> | 2019-06-25 01:41:45 +0200 |
---|---|---|
committer | konsumlamm <konsumlamm@gmail.com> | 2019-06-25 01:41:45 +0200 |
commit | 4b4bcce0406cfb750ebf6c0499630fbe726ff5d8 (patch) | |
tree | a6dd72ae21b18ba08729502a8f7e91488814e46c | |
parent | 65ca4a71023340787894b0eb039d270f4754982e (diff) |
add small doc comments
-rw-r--r-- | webhogg/game_server/src/math.rs | 2 |
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 |