Files
phos-neo/engine/hex/src/lib.rs
T
Amatsugu 13a74f7620
Rust / build (push) Failing after 4s
refactoring hex coords
2026-03-14 19:56:01 -04:00

18 lines
374 B
Rust

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;