generated from tipragot/rust
Add utils for hexagonal grild #50
|
@ -9,6 +9,7 @@ use partial_min_max::{max, min};
|
|||
|
||||
/// Represents a number that can be used in a hexagonal grid.
|
||||
pub trait HexNumber: Signed + PartialEq + Copy + PartialOrd + FromPrimitive {}
|
||||
|
||||
impl<T: Signed + PartialEq + Copy + PartialOrd + FromPrimitive> HexNumber for T {}
|
||||
|
||||
/// Represents a position in a hexagonal grid.
|
||||
|
|
Loading…
Reference in a new issue