Versions in this module Expand all Collapse all v0 v0.0.4 Dec 11, 2022 v0.0.3 Dec 11, 2022 v0.0.2 Dec 11, 2022 v0.0.1 Dec 11, 2022 Changes in this version + const XNeg + const XPos + const YNeg + const YPos + const ZNeg + const ZPos + var CircleForm = &Form + func ZLabel(zoom uint, merge uint64) (key string) + func ZMerge(a, b uint32) (m uint64) + func ZSplit(m uint64) (a, b uint32) + type Form struct + A float64 + B float64 + M float64 + N1 float64 + N2 float64 + N3 float64 + func NewForm() *Form + func (f *Form) At2D(angle float64) (x, y float64) + func (f *Form) At3D(lat, lon float64) (x, y, z float64) + func (f *Form) Radius(angle float64) (r float64) + func (f *Form) Set(fm *Form) + func (f *Form) SetValues(m, n1, n2, n3, a, b float64) + type Land interface + Fill func(tile Tile) + Fill3D func(tile Tile) + NewTile func(zoom, tx, ty int) Tile + Size func(zoom int) int + TileSize func() int + func NewLand(tileSize int, seed int64) Land + type Noise interface + Gen2D func(x, y float64) float64 + Gen3D func(x, y, z float64) float64 + type RegionData [][]int + func Regions(size, numRegions int, seed int64) RegionData + type SimplexNoise struct + F float64 + G float64 + L float64 + N Noise + O int + func NewSimplexNoise(seed int64) *SimplexNoise + func (sn *SimplexNoise) Gen2D(x, y float64) float64 + type Tile interface + Origin func() (ox, oy int) + Set func(zoom, ox, oy int) Tile + SetFace func(face int) Tile + Size func() (x, y int) + Topo func() [][]float64 + Zoom func() int