java.lang.Object
org.maloi.evolvo.expressiontree.operators.WarpedNoise
- All Implemented Interfaces:
- OperatorInterface, java.io.Serializable
- public class WarpedNoise
- extends java.lang.Object
- implements OperatorInterface, java.io.Serializable
Returns the value of a point in a 3 dimensional noise field.
|
Field Summary |
(package private) static int |
maxNoise
The maximum size of the noise field. |
(package private) static double[][][] |
noiseTable
An array of data points in the noise field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxNoise
static int maxNoise
- The maximum size of the noise field.
noiseTable
static double[][][] noiseTable
- An array of data points in the noise field.
WarpedNoise
public WarpedNoise()
init
public void init()
- Performs any initialization the operator requires.
In this case, generates a 3d array of random values.
- Specified by:
init in interface OperatorInterface
frac
double frac(double r)
- Returns the fractional part of a double.
perform
public void perform(org.maloi.evolvo.expressiontree.vm.Stack theStack)
- Perform the operation.
- Specified by:
perform 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