Package com.mxgraph.util
Class mxSpline
java.lang.Object
com.mxgraph.util.mxSpline
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double
Total length tracing the points on the splineprivate mxSpline1D
private mxSpline1D
private double[]
Array representing the relative proportion of the total distance of each point in the line ( i.e. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
t
private double[] tArray representing the relative proportion of the total distance of each point in the line ( i.e. first point is 0.0, end point is 1.0, a point halfway on line is 0.5 ). -
splineX
-
splineY
-
length
private double lengthTotal length tracing the points on the spline
-
-
Constructor Details
-
mxSpline
-
-
Method Details
-
Spline2D
public void Spline2D(double[] x, double[] y) Creates a new mxSpline.- Parameters:
x
-y
-
-
init
protected void init(double[] x, double[] y) -
getPoint
- Parameters:
t
- 0 <= t <= 1
-
checkValues
public boolean checkValues()Used to check the correctness of this spline -
getDx
public double getDx(double t) -
getDy
public double getDy(double t) -
getSplineX
-
getSplineY
-
getLength
public double getLength()
-