Dolda2000 GitWeb
/
kaka
/
rust-sdl-test.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Added a supercover line algorithm for better collision detection
[kaka/rust-sdl-test.git]
/
src
/
common
/
mod.rs
1
mod geometry;
2
pub use common::geometry::{
3
Point,
4
Dimension,
5
Radians,
6
Degrees,
7
Intersection,
8
supercover_line,
9
};
10
11
mod time;
12
pub use common::time::ScopeTimer;
13
14
#[macro_export]
15
macro_rules! hashmap {
16
($($k:expr => $v:expr),*) => {
17
{
18
let mut map = std::collections::HashMap::new();
19
$(map.insert($k, $v);)*
20
map
21
}
22
}
23
}