NAME

Math::HexGrid - Math::HexGrid - create hex coordinate grids

VERSION

version 0.01

DESCRIPTION

This module is for creating hex grids of Math::HexGrid::Grid objects. For now it only supports hexagonally-shaped grids. It supports both cube and axial (trapezoidal) coordinate systems.

METHODS

new_hexagon ($radius)

Constructs a new hexagonally-shaped grid of size $radius.

get_hex ($q, $r)

Returns the hex at location $q and $r.

SEE ALSO

This code was helped by Amit Patel's articles on hexagonal grids.

AUTHOR

David Farrell <dfarrell@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by David Farrell.

This is free software, licensed under:

The (two-clause) FreeBSD License