|0.1.1||May 6, 2020|
|0.1.0||May 5, 2020|
#918 in Data structures
Library for working with 3D hexagonal maps.
beehive crate as a dependency:
[dependencies] beehive = "0.1"
Coordinates are in cube or axial space where
Z is the cube axis, with an additional vertical axis
yz +Y __ yx / \ xz +X -X zx \__/ xy -Y zy
yx /\ yz +Y -X zx | | xz +X -Y zy \/ xy
The following collections are available behind the
collections feature (enabled by default):
DirectionMap, a stack-allocated map backed by an array that can be indexed by
HexMap, a generic QuadPrism-shaped dense container indexed by hex coordinates.
KdTree, a generic KD-tree in hex space, implemented on a flat vector.
serde-1: Enabled by default. Serialization support via
collections: Enabled by default. Collections that work with hex coordinates.
rand-07: Disabled by default.
rand0.7 distribution implementations for
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.