pmgen

package module
v0.0.0-...-e8ab348 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	S3 = 1.7320508075688772
	F2 = 0.5 * (S3 - 1)
	G2 = (3 - S3) / 6
	F3 = 1.0 / 3.0
	G3 = 1.0 / 6.0
)
View Source
const SmoothSize = 2

Variables

This section is empty.

Functions

func Dot2

func Dot2(g Grad3, x, y float64) float64

func Dot3

func Dot3(g Grad3, x, y, z float64) float64

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New

func New(w *world.World, seed int64) *Generator

func (*Generator) GenerateChunk

func (g *Generator) GenerateChunk(pos world.ChunkPos, chunk *chunk.Chunk)

type Grad3

type Grad3 struct {
	// contains filtered or unexported fields
}

type PopulationEntry

type PopulationEntry struct {
	ChunkPos  world.ChunkPos
	Chunk     *chunk.Chunk
	Populator populate.Populator
	Random    *rand.Random
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL