com.graphbuilder.math.func
Class PiFunction

java.lang.Object
  extended bycom.graphbuilder.math.func.PiFunction
All Implemented Interfaces:
Function

public class PiFunction
extends java.lang.Object
implements Function

The constant Pi.

See Also:
Math.PI

Constructor Summary
PiFunction()
           
 
Method Summary
 boolean acceptNumParam(int numParam)
          Returns true only for 0 parameters, false otherwise.
 double of(double[] d, int numParam)
          Returns the constant Pi regardless of the input.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PiFunction

public PiFunction()
Method Detail

of

public double of(double[] d,
                 int numParam)
Returns the constant Pi regardless of the input.

Specified by:
of in interface Function

acceptNumParam

public boolean acceptNumParam(int numParam)
Returns true only for 0 parameters, false otherwise.

Specified by:
acceptNumParam in interface Function

toString

public java.lang.String toString()