org.jgraph.util.Spline2D Class Reference

List of all members.

Public Member Functions

 Spline2D (Point2D[] points)
 Spline2D (double[] x, double[] y)
double[] getPoint (double t)
double getDx (double t)
double getDy (double t)
double getLength ()

Private Member Functions

void init (double[] x, double[] y)

Private Attributes

double[] t
Spline splineX
Spline splineY
double length

Detailed Description

Interpolates points given in the 2D plane. The resulting spline is a function s: R -> R^2 with parameter t in [0,1].

Author:
krueger


Constructor & Destructor Documentation

org.jgraph.util.Spline2D.Spline2D Point2D[]  points  ) 
 

Creates a new Spline2D.

Parameters:
points 

org.jgraph.util.Spline2D.Spline2D double[]  x,
double[]  y
 

Creates a new Spline2D.

Parameters:
x 
y 


Member Function Documentation

double org.jgraph.util.Spline2D.getDx double  t  ) 
 

double org.jgraph.util.Spline2D.getDy double  t  ) 
 

double org.jgraph.util.Spline2D.getLength  ) 
 

double [] org.jgraph.util.Spline2D.getPoint double  t  ) 
 

Parameters:
t 0 <= t <= 1

void org.jgraph.util.Spline2D.init double[]  x,
double[]  y
[private]
 


Member Data Documentation

double org.jgraph.util.Spline2D.length [private]
 

Total length tracing the points on the spline

Spline org.jgraph.util.Spline2D.splineX [private]
 

Spline org.jgraph.util.Spline2D.splineY [private]
 

double [] org.jgraph.util.Spline2D.t [private]
 

Array 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 ).


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:18 2006 for Digimod by  doxygen 1.4.6-NO