cubicbezier

Efficient manipulating of 2D cubic bezier curves.

LTS Haskell 23.27:0.6.0.7
Stackage Nightly 2025-07-13:0.6.0.7
Latest on Hackage:0.6.0.7

See all snapshotscubicbezier appears in

BSD-3-Clause licensedbyKristof Bastiaensen
Maintained byKristof Bastiaensen,[email protected]
This version can be pinned in stack with:cubicbezier-0.6.0.7@sha256:ded06a45d1ffa8b5ae39dbe525c7a09676ecad543da3bed12e5f0e79a0426f90,2327
Used by 2 packages inlts-23.17(full list with versions):

This library supports efficient manipulating of 2D cubic bezier curves, for use in graphics or typography. Supported features are:

Evaluating bezier curves and derivatives, affine transformations on bezier curves, arclength and inverse arclength, intersections between two curves, intersection between a curve and a line, curvature and radius of curvature, finding tangents parallel to a vector, finding inflection points and cusps.

It also supports polynomial root finding with Bernstein polynomials.

The moduleGeom2D.CubicBezier exports all the cubic bezier functions. The moduleGeom2Dcontains general 2D geometry functions and transformations.