public

Inheritance Graph

graph BT
	NoiseGenerator
	click NoiseGenerator "classUtil_1_1NoiseGenerator"

Description

Based on noise function by Ken Perlin

See also: http://www.noisemachine.com/talk1/

Improved Noise reference implementationhttp://mrl.nyu.edu/~perlin/noise/

Public Functions

   
   
  NoiseGenerator(uint32_t seed)
   
  ~NoiseGenerator()
   
float get(const float x, const float y, const float z) const

Documentation

function
Util::NoiseGenerator::NoiseGenerator

public
     
     
NoiseGenerator( uint32_t seed )

Defined in Util/Graphics/NoiseGenerator.h:26


function
Util::NoiseGenerator::~NoiseGenerator

public inline
   
   
~NoiseGenerator( )

Defined in Util/Graphics/NoiseGenerator.h:27


function
Util::NoiseGenerator::get

public const
     
     
float get( const float x,
  const float y,
  const float z
) const    

Evaluate Perlin’s noise function for the given coordinates.

Note: The noise is always zero for integer values.

Parameters

x
Input coordinate for the first dimension.
y
Input coordinate for the second dimension.
z
Input coordinate for the third dimension.

Returns

Noise value from [-1.0f, 1.0f].

Defined in Util/Graphics/NoiseGenerator.h:39