23 Nov 2015 00:14:31 UTC
- Distribution: Math-HexGrid
- Module version: 0.03
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (524 / 0 / 0)
- KwaliteeBus factor: 1
- 70.77% Coverage
- License: freebsd
- Activity24 month
- Download (5.14KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionDFARRELL David Farrell
- SEE ALSO
- COPYRIGHT AND LICENSE
Math::HexGrid - Math::HexGrid - create hex coordinate grids
This module is for creating hex grids of
Math::HexGrid::Gridobjects. For now it only supports hexagonally-shaped grids. It supports both cube and axial (trapezoidal) coordinate systems.
Constructs a new hexagonally-shaped grid of size
Constructs a new triangle-shaped grid with
$rowsnumber of rows.
Returns a hashref of all hexes in the grid.
Returns the hex at location
Returns a count of all unique sides (edges) in the grid.
This code was helped by Amit Patel's articles on hexagonal grids.
David Farrell <email@example.com>
This software is Copyright (c) 2015 by David Farrell.
This is free software, licensed under:
The (two-clause) FreeBSD License
Module Install Instructions
To install Math::HexGrid, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Math::HexGrid
For more information on module installation, please visit the detailed CPAN module installation guide.