|
mxGraph 1.10.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.util.mxSpline1D
public class mxSpline1D
One dimension of a spline curve
Field Summary | |
---|---|
protected double[] |
a
|
protected double[] |
b
|
protected double[] |
c
|
protected double[] |
d
|
protected double[] |
len
|
protected double[] |
pos1D
|
Constructor Summary | |
---|---|
mxSpline1D(double[] controlPointProportions,
double[] positions1D)
Creates a new Spline. |
Method Summary | |
---|---|
double |
getDx(double x)
Returns the first derivation at x. |
double |
getFastValue(double x)
Returns an interpolated value. |
double |
getValue(double x)
Returns an interpolated value. |
void |
setValues(double[] controlPointProportions,
double[] positions1D)
Set values for this Spline. |
void |
solve(double[][] A,
double[] b)
Solves Ax=b and stores the solution in b. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double[] len
protected double[] pos1D
protected double[] a
protected double[] b
protected double[] c
protected double[] d
Constructor Detail |
---|
public mxSpline1D(double[] controlPointProportions, double[] positions1D)
controlPointProportions
- the proportion along the curve, from 0->1
that each control point lies onpositions1D
- the co-ordinate position in the current dimension that
each control point lies onMethod Detail |
---|
public void setValues(double[] controlPointProportions, double[] positions1D)
controlPointProportions
- the proportion along the curve, from 0->1
that each control point lies onpositions1D
- the co-ordinate position in the current dimension that
each control point lies onpublic double getValue(double x)
x
-
public double getFastValue(double x)
x
-
public double getDx(double x)
x
-
public void solve(double[][] A, double[] b)
|
mxGraph 1.10.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |