za.co.luma.math.function
Class PerlinFunction2D

java.lang.Object
  extended by za.co.luma.math.function.RealFunction2D
      extended by za.co.luma.math.function.PerlinFunction2D

public class PerlinFunction2D
extends RealFunction2D

This class is sued to create 2D Perlin noise.

Author:
Herman Tulleken

Constructor Summary
PerlinFunction2D(int width, int height, int octaves)
           
PerlinFunction2D(int width, int height, int octaves, double persistence, boolean normalize)
           
 
Method Summary
 double getDouble(int u, int v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerlinFunction2D

public PerlinFunction2D(int width,
                        int height,
                        int octaves)

PerlinFunction2D

public PerlinFunction2D(int width,
                        int height,
                        int octaves,
                        double persistence,
                        boolean normalize)
Method Detail

getDouble

public double getDouble(int u,
                        int v)
Specified by:
getDouble in class RealFunction2D