com.jhlabs.math
Class TurbulenceFunction

java.lang.Object
  extended by com.jhlabs.math.CompoundFunction2D
      extended by com.jhlabs.math.TurbulenceFunction
All Implemented Interfaces:
Function2D

public class TurbulenceFunction
extends CompoundFunction2D


Constructor Summary
TurbulenceFunction(Function2D basis, float octaves)
           
 
Method Summary
 float evaluate(float x, float y)
           
 float getOctaves()
           
 void setOctaves(float octaves)
           
 
Methods inherited from class com.jhlabs.math.CompoundFunction2D
getBasis, setBasis
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurbulenceFunction

public TurbulenceFunction(Function2D basis,
                          float octaves)
Method Detail

setOctaves

public void setOctaves(float octaves)

getOctaves

public float getOctaves()

evaluate

public float evaluate(float x,
                      float y)