SimpleNGL 1.0
Public Member Functions
PerlinNoise Class Reference

a perlin noise engine More...

#include <PerlinNoise.h>

List of all members.

Public Member Functions

 PerlinNoise ()
 default ctor
 PerlinNoise (int _dimensions, int _seed=0)
 ctor with dimensions and seed vars
void init ()
 intialise the Perlin Noise engine
void setSeed (const int _v)
 set the RNG seed
void setDimenstions (const int _v)
 set the noise dimensions
Imath::V3f noise (const Imath::V3f &_point) const
 generate noise based on a XYZ point

Detailed Description

a perlin noise engine


Constructor & Destructor Documentation

PerlinNoise::PerlinNoise ( )

default ctor

PerlinNoise::PerlinNoise ( int  _dimensions,
int  _seed = 0 
)

ctor with dimensions and seed vars

Parameters:
[in]_dimensionshow many dimensions to make noise in
[in]_seedthe RNG seed

Member Function Documentation

void PerlinNoise::init ( )

intialise the Perlin Noise engine

Imath::V3f PerlinNoise::noise ( const Imath::V3f &  _point) const [inline]

generate noise based on a XYZ point

Parameters:
[in]_pointthe point to get noise for
void PerlinNoise::setDimenstions ( const int  _v) [inline]

set the noise dimensions

Parameters:
[in]_vthe value to set dimensions to
void PerlinNoise::setSeed ( const int  _v) [inline]

set the RNG seed

Parameters:
[in]_vthe value to set seed to

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Defines