org.jscience.media.pictures.filters.math
Class TurbulenceFunction

java.lang.Object
  extended by org.jscience.media.pictures.filters.math.CompoundFunction2D
      extended by org.jscience.media.pictures.filters.math.TurbulenceFunction
All Implemented Interfaces:
Function2D

public class TurbulenceFunction
extends CompoundFunction2D

DOCUMENT ME!


Field Summary
 
Fields inherited from class org.jscience.media.pictures.filters.math.CompoundFunction2D
basis
 
Constructor Summary
TurbulenceFunction(Function2D basis, float octaves)
          Creates a new TurbulenceFunction object.
 
Method Summary
 float evaluate(float x, float y)
          DOCUMENT ME!
 float getOctaves()
          DOCUMENT ME!
 void setOctaves(float octaves)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.pictures.filters.math.CompoundFunction2D
getBasis, setBasis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurbulenceFunction

public TurbulenceFunction(Function2D basis,
                          float octaves)
Creates a new TurbulenceFunction object.

Parameters:
basis - DOCUMENT ME!
octaves - DOCUMENT ME!
Method Detail

setOctaves

public void setOctaves(float octaves)
DOCUMENT ME!

Parameters:
octaves - DOCUMENT ME!

getOctaves

public float getOctaves()
DOCUMENT ME!

Returns:
DOCUMENT ME!

evaluate

public float evaluate(float x,
                      float y)
DOCUMENT ME!

Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
Returns:
DOCUMENT ME!