maspack.function
Class ConstantFuntion3x1
java.lang.Object
maspack.function.ConstantFuntion3x1
- All Implemented Interfaces:
- DifferentiableFunction3x1, Function3x1, MISOFunction
public class ConstantFuntion3x1
- extends java.lang.Object
- implements DifferentiableFunction3x1
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstantFuntion3x1
public ConstantFuntion3x1(double c)
getVal
public double getVal()
setVal
public void setVal(double val)
eval
public double eval(double in)
eval
public double eval(double[] in)
- Specified by:
eval
in interface MISOFunction
eval
public double eval(Point3d in)
- Specified by:
eval
in interface DifferentiableFunction3x1
- Specified by:
eval
in interface Function3x1
getInputSize
public int getInputSize()
- Specified by:
getInputSize
in interface MISOFunction
eval
public double eval(double x,
double y,
double z)
- Specified by:
eval
in interface DifferentiableFunction3x1
- Specified by:
eval
in interface Function3x1
evalDerivative
public double evalDerivative(Point3d in,
int[] derivatives)
- Specified by:
evalDerivative
in interface DifferentiableFunction3x1
evalDerivative
public double evalDerivative(double x,
double y,
double z,
int dx,
int dy,
int dz)
- Specified by:
evalDerivative
in interface DifferentiableFunction3x1