Versions in this module Expand all Collapse all v0 v0.4.0 Oct 1, 2026 v0.3.0 Sep 29, 2026 Changes in this version type Corner + func (c *Corner) UnmarshalText(text []byte) error type Side + func (s *Side) UnmarshalText(text []byte) error v0.2.0 Sep 28, 2026 Changes in this version + func EdgeVertices(e EdgeKey) (VertexKey, VertexKey) + func RenderPreview(g Grid, hexes []Hex, scale int) (*image.RGBA, error) + type EdgeKey struct + Col int + Row int + Side Side + func EdgeBetween(u, v VertexKey) (EdgeKey, bool) type Grid + func (g Grid) HexAt(x, y float64) (col, row int) + func (g Grid) NearestVertex(x, y float64) VertexKey + type HexCorner struct + Col int + Corner int + Row int + func VertexHexes(k VertexKey) [3]HexCorner + type Side int + const NorthEastSide + const NorthSide + const SouthEastSide + func (s Side) MarshalText() ([]byte, error) + func (s Side) String() string type VertexKey + func VertexNeighbors(k VertexKey) [3]VertexKey v0.1.0 Sep 28, 2026 Changes in this version + const NoDataMajority + const SampleWindow + var Directions = [6]Direction + func Neighbor(col, row int, d Direction) (int, int) + func Version() semver.Version + func WritePreview(w io.Writer, g Grid, hexes []Hex, scale int) error + type Corner int + const EastCorner + const WestCorner + func (c Corner) MarshalText() ([]byte, error) + func (c Corner) String() string + type Direction int + const North + const NorthEast + const NorthWest + const South + const SouthEast + const SouthWest + type Elevations struct + BoundaryVertices []Vertex + Grid GridInfo + Heightmap HeightmapInfo + Hexes []Hex + Hmz2eleVersion string + Sampling SamplingInfo + func NewElevations(fileName string, hm *dem2hm.HeightMap16, g Grid) *Elevations + type Grid struct + Apothem int + Columns int + Height int + Rows int + Side float64 + Width int + func NewGrid(apothem, width, height int) (Grid, error) + func (g Grid) Center(col, row int) (x, y float64) + func (g Grid) Contains(col, row int) bool + func (g Grid) East(col, row int) (x, y float64) + func (g Grid) Vertex(k VertexKey) (x, y float64) + func (g Grid) West(col, row int) (x, y float64) + type GridInfo struct + ApothemPx int + Columns int + CornerNote string + HeightPx int + HexCount int + Layout string + Rows int + SidePx float64 + WidthPx int + type HeightmapInfo struct + FileName string + Metadata dem2hm.Metadata + type Hex struct + Center *int16 + Col int + East *int16 + Row int + West *int16 + func Build(r Raster, g Grid) []Hex + func (h Hex) IsLand() bool + type Raster struct + Data []int16 + Height int + Width int + func RasterFromHeightMap(hm *dem2hm.HeightMap16) Raster + func (r Raster) Sample(x, y float64) (int16, bool) + type SamplingInfo struct + NoDataMajority int + Statistic string + Window int + type Summary struct + CoastalSea int + Hexes int + Land int + Low int + NoData int + func Summarize(g Grid, hexes []Hex) Summary + type Vertex struct + Col int + Corner Corner + Elevation *int16 + Row int + func BuildBoundaryVertices(r Raster, g Grid) []Vertex + type VertexKey struct + Col int + Corner Corner + Row int + func CornerOwner(col, row int, corner int) VertexKey