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