Noise-1.0.2: A Haskell coherent noise generator based on libnoise

Math.Noise

Synopsis

# Documentation

cubic :: Double -> Double -> Double -> Double -> Double -> DoubleSource

Performs cubic interpolation between two values bound between two other values - The alpha value should range from 0.0 to 1.0. - If the alpha value is 0.0, this function returns the first value. - If the alpha vlaue is 1.0, this function returns the second value.

Performs linear interpolation between two values. - The alpha value should range from 0.0 to 1.0. - If the alpha value is 0.0, this function returns the first value. - If the alpha value is 1.0, this function returns the second value.

Maps a value onto a cubic S-curve - the derivative of a cubic S-curve is zero at 0.0 and value at 1.0

Maps a value onto a quintic S-curve. - The first derivative is zero at 0.0 and value at 1.0 - The second derivative is zero at 0.0 and value at 1.0

Constructors

 NoiseVector Double Double Double

Instances

 Eq NoiseVector Show NoiseVector

Generates a normalized vector based on four numbers on the range of [-1.0, 1.0] - This function uses the Cook (1957) method, and may reject pairs

Generates a uniform distribution of Double values on the range [-1.0, 1.0]

Generates a uniform distribution that has at least n*4 values that won't be rejected by the vector generation function

Generates a list of uniformly distributed normalized vectors

toList :: [NoiseVector] -> [Double]Source

Creates a list of Doubles with 0.0 separating each set of 3 Doubles

Creates an immutable array from a list of Doubles

An immutable table of predefined vectors

A constant list of Doubles