org.jgraph.util
Class Spline2D
- java.lang.Object
-
- org.jgraph.util.Spline2D
-
public class Spline2D extends java.lang.ObjectInterpolates points given in the 2D plane. The resulting spline is a function s: R -> R^2 with parameter t in [0,1].
-
-
Constructor Summary
Constructors Constructor and Description Spline2D(double[] x, double[] y)Creates a new Spline2D.Spline2D(java.awt.geom.Point2D[] points)Creates a new Spline2D.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancheckValues()Used to check the correctness of this splinedoublegetDx(double t)doublegetDy(double t)doublegetLength()double[]getPoint(double t)SplinegetSplineX()SplinegetSplineY()
-
-
-
Constructor Detail
-
Spline2D
public Spline2D(java.awt.geom.Point2D[] points)
Creates a new Spline2D.- Parameters:
points-
-
Spline2D
public Spline2D(double[] x, double[] y)Creates a new Spline2D.- Parameters:
x-y-
-
-
Method Detail
-
getPoint
public double[] getPoint(double t)
- 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
public Spline getSplineX()
-
getSplineY
public Spline getSplineY()
-
getLength
public double getLength()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG