Crates.io | hex2d |
lib.rs | hex2d |
version | 1.1.0 |
source | src |
created_at | 2014-12-09 22:31:51.637888 |
updated_at | 2021-08-16 13:57:21.727709 |
description | Helper library for working with 2d hex-grid maps |
homepage | https://github.com/dpc/hex2d-rs |
repository | https://github.com/dpc/hex2d-rs |
max_upload_size | |
id | 506 |
size | 53,559 |
Library for working with 2d hex map systems.
A lot of ideas taken from redbloggames hexagon page
Read Documentation for details.
See issues for TODO and BUGs.
You might be interested in additional functionality provided by hex2d-dpcext-rs library.
Pointy-topped:
/\
/ \
| |
| |
\ /
\/
-z
+y YZ | XZ +x
--- | ---
--- | ---
--- | ---
YX -x- XY
--- | ---
--- | ---
--- ZX | ZY ---
-x | -y
+z
Flat-topped:
____
/ \
/ \
\ /
\____/
+y -z
\ /
\ YZ /
YX \ / XZ
\ /
-x--------x--------+x
/ \
ZX / \ XY
/ ZY \
/ \
+z -y
cargo build
To help with the maintaince, the ownership of this crate is potentially shared between multiple developers. It is recommended to always use cargo-crev to verify the trustworthiness of each of your dependencies, including this one.