Show / Hide Table of Contents

Class ValueNoise

Simple value noise implementation that provides consistent pseudo-random values based on input coordinates and a seed.

Inheritance
object
ValueNoise
Implements
INoiseSource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TerraProc.Core.Noise
Assembly: TerraProc.Core.dll
Syntax
public class ValueNoise : INoiseSource

Constructors

| Edit this page View Source

ValueNoise(Seed)

Simple value noise implementation that provides consistent pseudo-random values based on input coordinates and a seed.

Declaration
public ValueNoise(Seed seed)
Parameters
Type Name Description
Seed seed

Seed for the noise generation.

Methods

| Edit this page View Source

Sample(double, double)

Sample the value noise at the given coordinates.

Declaration
public double Sample(double x, double y)
Parameters
Type Name Description
double x

X coordinate.

double y

Y coordinate.

Returns
Type Description
double

Noise value in the range [0, 1).

Implements

INoiseSource

Extension Methods

NoiseProviderExtensions.SampleBand(INoiseSource, double, double, double, double)
NoiseProviderExtensions.SampleOctaves(INoiseSource, double, double, int, double)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX