beehive

crates.io docs.rs travis.org

Library for working with 3D hexagonal maps.

Usage

Add the beehive crate as a dependency:

toml [dependencies] beehive = "0.1"

Coordinate space

Coordinates are in cube or axial space where Z is the cube axis, with an additional vertical axis W.

Flat-top

yz +Y __ yx / \ xz +X -X zx \__/ xy -Y zy

Pointy-top

yx /\ yz +Y -X zx | | xz +X -Y zy \/ xy

Collections

The following collections are available behind the collections feature (enabled by default):

Crate Features

Licence

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.