Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AquilaxPerlinNoiseGenerator ¶
type AquilaxPerlinNoiseGenerator struct {
// contains filtered or unexported fields
}
func NewAquilaxPerlinNoiseGenerator ¶
func NewAquilaxPerlinNoiseGenerator(config AquilaxPerlinNoiseGeneratorConfig) *AquilaxPerlinNoiseGenerator
func (*AquilaxPerlinNoiseGenerator) Get1D ¶
func (a *AquilaxPerlinNoiseGenerator) Get1D(x float64) float64
func (*AquilaxPerlinNoiseGenerator) Get2D ¶
func (a *AquilaxPerlinNoiseGenerator) Get2D(x, y float64) float64
func (*AquilaxPerlinNoiseGenerator) Get3D ¶
func (a *AquilaxPerlinNoiseGenerator) Get3D(x, y, z float64) float64
type AquilaxPerlinNoiseGeneratorConfig ¶
- Alpha: is the weight when the sum is formed, usually around 2 (as this approaches 1 the function is noisier)
- Beta: is the harmonic scaling/spacing, usually around 2
- N is the number of iterations
- Seed is the math.rand seed value to use
type OpenSimplexNoiseGenerator ¶
type OpenSimplexNoiseGenerator struct {
// contains filtered or unexported fields
}
func NewOpenSimplexNoiseGenerator ¶
func NewOpenSimplexNoiseGenerator(config OpenSimplexNoiseGeneratorConfig) *OpenSimplexNoiseGenerator
func (*OpenSimplexNoiseGenerator) Get1D ¶
func (o *OpenSimplexNoiseGenerator) Get1D(x float64) float64
func (*OpenSimplexNoiseGenerator) Get2D ¶
func (o *OpenSimplexNoiseGenerator) Get2D(x, y float64) float64
func (*OpenSimplexNoiseGenerator) Get3D ¶
func (o *OpenSimplexNoiseGenerator) Get3D(x, y, z float64) float64
type OpenSimplexNoiseGeneratorConfig ¶
type OpenSimplexNoiseGeneratorConfig struct {
Seed int64
}
Click to show internal directories.
Click to hide internal directories.