diagrams-lib-0.4: Embedded domain-specific language for declarative graphics

Maintainerdiagrams-discuss@googlegroups.com

Diagrams.CubicSpline

Contents

Description

Generic functionality for constructing cubic splines

Synopsis

Constructing paths from cubic splines

cubicSpline :: (PathLike p, Fractional (V p)) => Bool -> [Point (V p)] -> pSource

Construct a spline path-like thing of cubic segments from a list of vertices, with the first vertex as the starting point. The first argument specifies whether the path should be closed. See: http://mathworld.wolfram.com/CubicSpline.html