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

Quick Search    Search Deep

exptree.operators
Class mandel  view mandel download mandel.java

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

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

Returns a value based on a mandelbrot set. This function takes 6 parameters. The first four define a rectangular space within the mandelbrot set. The next two define a point inside that space, relative to that space's own coordinate system. The value returned is in [-1.0,1.0], where -1.0 is the value chosen for the inside of the set, and 1.0 is that for the outside.

Version:
1.1 08/19/2000

Constructor Summary
mandel()
           
 
Method Summary
 double evaluate(exptree.expressionTree[] params)
          Perform the operation.
 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
 

Constructor Detail

mandel

public mandel()
Method Detail

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

init

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

Specified by:
init in interface operatorInterface

getNumberOfParameters

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

Specified by:
getNumberOfParameters in interface operatorInterface