public class PiecewiseFunction extends java.lang.Object implements IFunction, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected double[] |
xa |
protected double[] |
ya |
| Constructor and Description |
|---|
PiecewiseFunction(double[] x,
double[] y) |
PiecewiseFunction(java.awt.geom.Point2D[] controlPoints) |
| Modifier and Type | Method and Description |
|---|---|
PiecewiseFunction |
clone() |
double |
evaluate(double x) |
double[] |
evaluate(double[] x) |
java.awt.geom.Point2D[] |
getControlPoints() |
static void |
sort(java.awt.geom.Point2D[] controlPoints)
Sort points by increasing value of 'x', value of y is ignored.
|
public PiecewiseFunction(double[] x,
double[] y)
public PiecewiseFunction(java.awt.geom.Point2D[] controlPoints)
public java.awt.geom.Point2D[] getControlPoints()
public PiecewiseFunction clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic static void sort(java.awt.geom.Point2D[] controlPoints)
controlPoints - array of points to be sorted in place.