hsnoise-0.0.1: A coherent 3d noise library.

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 = IntSource

A seed for a random function.

class Noise a whereSource

Class of noise functions.

Methods

noiseValue :: a -> Point -> DoubleSource

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

Instances

Noise Perlin

Implementation of Noise for Perlin.

coherentNoise :: Seed -> Point -> DoubleSource

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