Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

exptree.operators
Class noise  view noise download noise.java

java.lang.Object
  extended byexptree.operators.noise
All Implemented Interfaces:
operatorInterface, java.io.Serializable

public class noise
extends java.lang.Object
implements operatorInterface, java.io.Serializable

Returns the value of a point in a 3 dimensional noise field.

Version:
1.1 08/19/2000

Field Summary
(package private) static int maxNoise
          The size of each dimension of our noise table.
(package private) static double[][][] noiseTable
          The actual noise table.
 
Constructor Summary
noise()
           
 
Method Summary
 double evaluate(exptree.expressionTree[] params)
          Perform the operation.
(package private)  double frac(double r)
          Returns the fractional part of a number.
 java.lang.String getName()
          Returns the operator's name.
 int getNumberOfParameters()
          Returns the number of parameters expected by the operator.
 void init()
          Performs any initialization the operator requires.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxNoise

static int maxNoise
The size of each dimension of our noise table.


noiseTable

static double[][][] noiseTable
The actual noise table.

Constructor Detail

noise

public noise()
Method Detail

init

public void init()
Performs any initialization the operator requires.

Specified by:
init in interface operatorInterface

frac

double frac(double r)
Returns the fractional part of a number.


evaluate

public double evaluate(exptree.expressionTree[] params)
Perform the operation.

Specified by:
evaluate in interface operatorInterface

getName

public java.lang.String getName()
Returns the operator's name.

Specified by:
getName in interface operatorInterface

getNumberOfParameters

public int getNumberOfParameters()
Returns the number of parameters expected by the operator.

Specified by:
getNumberOfParameters in interface operatorInterface