refactoring hex coords
Rust / build (push) Failing after 4s

This commit is contained in:
2026-03-14 19:56:01 -04:00
parent 912ee376c6
commit 13a74f7620
5 changed files with 481 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
mod chunk;
mod hex_coord;
pub mod prelude
{
pub use crate::chunk::*;
pub use crate::hex_coord::*;
pub use crate::*;
}
pub const OUTER_RADIUS: f32 = 1.;
pub const INNER_RADIUS: f32 = OUTER_RADIUS * (SQRT_3 / 2.);
pub const SHORT_DIAGONAL: f32 = 1. * SQRT_3;
pub const LONG_DIAGONAL: f32 = 2. * OUTER_RADIUS;
pub const SQRT_3: f32 = 1.7320508076;
#[cfg(test)]
mod tests;