com.quinncurtis.chart2djava
Class SurfaceFunction

java.lang.Object
  extended by com.quinncurtis.chart2djava.SurfaceFunction

public abstract class SurfaceFunction
extends java.lang.Object

The abstract base class for creating 3D functions where z = fn(x,y). The SurfaceFunction is used by classes that need to reference a user defined function.


Constructor Summary
SurfaceFunction()
          The default SurfaceFunction constructor
 
Method Summary
abstract  double calcZValue(double x, double y)
          Calculates the z-value of a 3D function given x and y.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfaceFunction

public SurfaceFunction()
The default SurfaceFunction constructor

Method Detail

calcZValue

public abstract double calcZValue(double x,
                                  double y)
Calculates the z-value of a 3D function given x and y.

Parameters:
x - The x-value.
y - The y-value.
Returns:
Returns z = fn(x,y);