chickenwire 0.1.0

A library for representing and manipulating hexagonal grids.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Integration tests for `chickenwire::hexgrid`.

use chickenwire::prelude::*;

#[test]
fn test_radial() {
    let grid = HexGrid::new_radial(5, 0);

    assert_eq!(Some(&0), grid.get(MultiCoord::axial(0, 0)));
    assert_eq!(Some(&0), grid.get(MultiCoord::axial(1, 0)));
}