|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplugins.big.bigsnakeutils.icy.gui.curve.Curve
plugins.big.bigsnakeutils.icy.gui.curve.PolynomialCurve
public class PolynomialCurve
Class describing a polynomial Curve. If the Curve owns N control points, the PolynomialCurve is a polynom of degree N-1 interpolating the control points.
Constructor Summary | |
---|---|
PolynomialCurve()
Default constructor |
|
PolynomialCurve(double y0,
double y1)
Constructs the curve specifying the position of the first and last points. |
|
PolynomialCurve(PolynomialCurve other)
Copy constructor |
|
PolynomialCurve(java.util.Vector<java.awt.geom.Point2D> points)
Default constructor. |
Method Summary | |
---|---|
void |
clear()
Remove all the control points except the first and the last ones. |
Curve |
clone()
|
void |
insertControlPoint(int index,
java.awt.geom.Point2D point)
Inserts a control point at the given index. |
void |
removeControlPoint(int index)
Removes a control point. |
void |
setControlPoint(int index,
java.awt.geom.Point2D point)
Set the control point for the given index. |
void |
setControlPoints(java.util.Vector<java.awt.geom.Point2D> points)
Set the list of the control points. |
double |
valueAt(double x)
Returns the value of the curve for the abscissa x. |
Methods inherited from class plugins.big.bigsnakeutils.icy.gui.curve.Curve |
---|
count, equals, getControlPoint, getControlPoints, insertControlPoint, setControlPoint |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolynomialCurve()
public PolynomialCurve(double y0, double y1)
public PolynomialCurve(java.util.Vector<java.awt.geom.Point2D> points)
points
- Control pointspublic PolynomialCurve(PolynomialCurve other)
Method Detail |
---|
public void setControlPoints(java.util.Vector<java.awt.geom.Point2D> points)
Curve
setControlPoints
in class Curve
public void insertControlPoint(int index, java.awt.geom.Point2D point)
Curve
insertControlPoint
in class Curve
public void removeControlPoint(int index)
Curve
removeControlPoint
in class Curve
public void setControlPoint(int index, java.awt.geom.Point2D point)
Curve
setControlPoint
in class Curve
public void clear()
Curve
clear
in class Curve
public double valueAt(double x)
Curve
valueAt
in class Curve
public Curve clone()
clone
in class Curve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |