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 |
|
Creates a new Spline2D.
|
|
Creates a new Spline2D.
|
|
|
|
|
|
|
|
|
|
|
|
Total length tracing the points on the spline |
|
|
|
|
|
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 ). |