hsnoise-0.0.3: A coherent 3d noise library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Numeric.Noise

Description

Contains Noise class as well as a general coherent noise generating function which the specific noise implementations are based on.

Synopsis

Documentation

type Point = (Double, Double, Double) Source #

A point in 3-space.

type Seed = Int Source #

A seed for a random function.

class Noise a where Source #

Class of noise functions.

Methods

noiseValue :: a -> Point -> Double Source #

Maps 3-space points to a noise value between -1 and 1 for the given noise function.

Instances

Instances details
Noise Perlin Source # 
Instance details

Defined in Numeric.Noise.Perlin

Noise Ridged Source # 
Instance details

Defined in Numeric.Noise.Ridged

pmap :: (Double -> Double) -> Point -> Point Source #

Map a function on a Point.

clamp :: Ord a => a -> a -> a -> a Source #

Returns a clamped value between a min and max value.

coherentNoise :: Seed -> Point -> Double Source #

Returns a coherent noise value between -1 and 1 given a seed and a point in 3-space.