org.jgraph.util
Class Spline2D
public class Spline2D
extends java.lang.Object
Interpolates points given in the 2D plane. The resulting spline
is a function s: R -> R^2 with parameter t in [0,1].
Spline2D(Point2D[] points) - Creates a new Spline2D.
|
Spline2D(double[] x, double[] y) - Creates a new Spline2D.
|
Spline2D
public Spline2D(Point2D[] points)
Creates a new Spline2D.
Spline2D
public Spline2D(double[] x,
double[] y)
Creates a new Spline2D.
checkValues
public boolean checkValues()
Used to check the correctness of this spline
getDx
public double getDx(double t)
getDy
public double getDy(double t)
getLength
public double getLength()
getPoint
public double[] getPoint(double t)
getSplineX
public Spline getSplineX()
getSplineY
public Spline getSplineY()
Copyright (C) 2001-2006 Gaudenz Alder. All rights reserved.