splines- B-Splines, other splines, and NURBS.

Safe HaskellNone




data CSpline a Source

Cubic Hermite splines. These are cubic splines defined by a sequence of control points and derivatives at those points.


cSpline :: Ord (Scalar a) => [(Scalar a, a, a)] -> CSpline aSource

Cubic splines specified by a list of control points, where each control point is given by a triple of parameter value, position of the spline at that parameter value, and derivative of the spline at that parameter value.

evalSpline :: Spline s v => s v -> Scalar v -> vSource