public final class SimpleCurve extends FunctionCurve
|Constructor and Description|
The constructor takes the name of the java method that represents the function.
|Modifier and Type||Method and Description|
Return the value of the function at the specified X position.
public SimpleCurve(String name) throws NoSuchMethodException
The constructor takes the name of the java method
that represents the function. An example would be
The argument must be the name of a static method that takes a single double parameter and returns a double. If it doesn't meet this criteria an exception is thrown.
name- The fully qualified name of the function
NoSuchMethodException- if the function doesn't exist, isn't static, doesn't take a double or doesn't return a double.
public double get(double x)
Erroris thrown by this method.
Copyright © 2001-2017 Big Faceless Organization