Class Spline
Provides factory methods for creating spline segments of various degrees.
public static class Spline
- Inheritance
-
Spline
- Inherited Members
Methods
Cubic(Point, Point, Point, Point)
Creates a cubic spline (degree 3) using Catmull–Rom interpolation through P1 and P2.
public static CubicSpline Cubic(Point p0, Point p1, Point p2, Point p3)
Parameters
Returns
Remarks
This produces a smooth segment influenced by surrounding control points p0
and p3
.
Linear(Point, Point)
Creates a linear spline (degree 1) between two points.
public static LinearSpline Linear(Point p0, Point p1)
Parameters
Returns
Quadratic(Point, Point, Point)
Creates a quadratic spline (degree 2) between three points.
public static QuadraticSpline Quadratic(Point p0, Point p1, Point p2)