# hex-coordinates [![crates.io](https://img.shields.io/crates/v/hex-coordinates)](https://crates.io/crates/hex-coordinates) [![docs.rs](https://img.shields.io/docsrs/hex-coordinates)](https://docs.rs/hex-coordinates/) A library for handling hex coordinates. Massive credit to [Hexagonal Grids from Red Blob Games](https://www.redblobgames.com/grids/hexagons/).
Offset | Doubled | Axial th> | Cube | |
---|---|---|---|---|
Pointy Rotation | evenr, oddr | doublewidth | axial | cube |
Flat Rotation | evenq, oddq | doubleheight | ||
Other Rotations | no | yes | ||
Vector operations (add, subtract, scale) | no | yes | yes | yes | tr>
Array storage | rectangular | no* | rhombus* | no* |
Hash storage | any shape | any shape | ||
Hexagonal symmetry | no | no | no | yes |
Easy algorithms | few | some | most | most |