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

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

public class CellularFunction2D
extends java.lang.Object
implements Function2D

DOCUMENT ME!


Field Summary
 boolean angular
          DOCUMENT ME!
 boolean cells
          DOCUMENT ME!
 float distancePower
          DOCUMENT ME!
 
Constructor Summary
CellularFunction2D()
          Creates a new CellularFunction2D object.
 
Method Summary
 float evaluate(float x, float y)
          DOCUMENT ME!
 float getCoefficient(int c)
          DOCUMENT ME!
 void setCoefficient(int c, float v)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

distancePower

public float distancePower
DOCUMENT ME!


cells

public boolean cells
DOCUMENT ME!


angular

public boolean angular
DOCUMENT ME!

Constructor Detail

CellularFunction2D

public CellularFunction2D()
Creates a new CellularFunction2D object.

Method Detail

setCoefficient

public void setCoefficient(int c,
                           float v)
DOCUMENT ME!

Parameters:
c - DOCUMENT ME!
v - DOCUMENT ME!

getCoefficient

public float getCoefficient(int c)
DOCUMENT ME!

Parameters:
c - DOCUMENT ME!
Returns:
DOCUMENT ME!

evaluate

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

Specified by:
evaluate in interface Function2D
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
Returns:
DOCUMENT ME!