Added a supercover line algorithm for better collision detection
[kaka/rust-sdl-test.git] / src / common / mod.rs
... / ...
CommitLineData
1mod geometry;
2pub use common::geometry::{
3 Point,
4 Dimension,
5 Radians,
6 Degrees,
7 Intersection,
8 supercover_line,
9};
10
11mod time;
12pub use common::time::ScopeTimer;
13
14#[macro_export]
15macro_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}